Lines 8-25
Link Here
|
8 |
|
8 |
|
9 |
PORTNAME= gonvert |
9 |
PORTNAME= gonvert |
10 |
PORTVERSION= 0.2.25 |
10 |
PORTVERSION= 0.2.25 |
11 |
PORTREVISION= 1 |
11 |
PORTREVISION= 2 |
12 |
CATEGORIES= misc python gnome |
12 |
CATEGORIES= misc python gnome |
13 |
MASTER_SITES= http://www.unihedron.com/projects/gonvert/downloads/ |
13 |
MASTER_SITES= http://www.unihedron.com/projects/gonvert/downloads/ |
14 |
|
14 |
|
15 |
MAINTAINER= ports@FreeBSD.org |
15 |
MAINTAINER= nemysis@gmx.ch |
16 |
COMMENT= A conversion utility that allows conversion between many units |
16 |
COMMENT= Conversion utility that allows conversion between many units |
|
|
17 |
|
18 |
LICENSE= GPLv2 |
17 |
|
19 |
|
18 |
USE_GNOME= pygtk2 |
20 |
USE_GNOME= pygtk2 |
19 |
USE_PYTHON= yes |
21 |
USE_PYTHON= yes |
20 |
USE_GETTEXT= yes |
|
|
21 |
NO_BUILD= yes |
22 |
NO_BUILD= yes |
22 |
|
23 |
|
|
|
24 |
PORTDOCS= CHANGELOG FAQ README THANKS TODO |
25 |
|
26 |
.include <bsd.port.options.mk> |
27 |
|
28 |
.if ${PORT_OPTIONS:MNLS} |
29 |
USE_GETTEXT= yes |
30 |
PLIST_SUB+= NLS="" |
31 |
.else |
32 |
PLIST_SUB+= NLS="@comment " |
33 |
.endif |
34 |
|
23 |
post-patch: |
35 |
post-patch: |
24 |
@${REINPLACE_CMD} -e 's|#!/usr/bin/python|#!/usr/bin/env python|g ; \ |
36 |
@${REINPLACE_CMD} -e 's|#!/usr/bin/python|#!/usr/bin/env python|g ; \ |
25 |
s|/usr/share|${PREFIX}/share|g ; \ |
37 |
s|/usr/share|${PREFIX}/share|g ; \ |
Lines 35-48
Link Here
|
35 |
${INSTALL_DATA} ${WRKSRC}/pixmaps/*.png ${DATADIR}/pixmaps |
47 |
${INSTALL_DATA} ${WRKSRC}/pixmaps/*.png ${DATADIR}/pixmaps |
36 |
@${MKDIR} ${PREFIX}/share/pixmaps |
48 |
@${MKDIR} ${PREFIX}/share/pixmaps |
37 |
${LN} -sf ${DATADIR}/pixmaps/gonvert.png ${PREFIX}/share/pixmaps |
49 |
${LN} -sf ${DATADIR}/pixmaps/gonvert.png ${PREFIX}/share/pixmaps |
|
|
50 |
|
51 |
.if ${PORT_OPTIONS:MNLS} |
38 |
@${MKDIR} ${PREFIX}/share/locale/pl/LC_MESSAGES |
52 |
@${MKDIR} ${PREFIX}/share/locale/pl/LC_MESSAGES |
39 |
${INSTALL_DATA} ${WRKSRC}/i18n/pl_messages.gmo \ |
53 |
${INSTALL_DATA} ${WRKSRC}/i18n/pl_messages.gmo \ |
40 |
${PREFIX}/share/locale/pl/LC_MESSAGES/gonvert.mo |
54 |
${PREFIX}/share/locale/pl/LC_MESSAGES/gonvert.mo |
41 |
.if !defined(NOPORTDOCS) |
55 |
.endif |
|
|
56 |
|
57 |
.if ${PORT_OPTIONS:MDOCS} |
42 |
@${MKDIR} ${DOCSDIR} |
58 |
@${MKDIR} ${DOCSDIR} |
43 |
.for file in CHANGELOG FAQ README THANKS TODO |
59 |
${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/doc/|} ${DOCSDIR} |
44 |
${INSTALL_DATA} ${WRKSRC}/doc/${file} ${DOCSDIR} |
|
|
45 |
.endfor |
46 |
.endif |
60 |
.endif |
47 |
|
61 |
|
48 |
.include <bsd.port.mk> |
62 |
.include <bsd.port.mk> |