Lines 6-12
Link Here
|
6 |
# |
6 |
# |
7 |
|
7 |
|
8 |
PORTNAME= diffuse |
8 |
PORTNAME= diffuse |
9 |
PORTVERSION= 0.3.3 |
9 |
PORTVERSION= 0.3.4 |
10 |
CATEGORIES= devel python |
10 |
CATEGORIES= devel python |
11 |
MASTER_SITES= SF |
11 |
MASTER_SITES= SF |
12 |
|
12 |
|
Lines 15-30
Link Here
|
15 |
|
15 |
|
16 |
NO_BUILD= yes |
16 |
NO_BUILD= yes |
17 |
|
17 |
|
18 |
USE_PYTHON= 2.5+ |
18 |
USE_PYTHON= yes |
19 |
USE_GNOME= pygtk2 |
19 |
USE_GNOME= pygtk2 |
20 |
USE_BZIP2= yes |
20 |
USE_BZIP2= yes |
21 |
|
21 |
|
22 |
MAN1= diffuse.1 |
22 |
MAN1= diffuse.1 |
23 |
|
23 |
|
24 |
OPTIONS= MENU "Add desktop menu (needs desktop-file-utils)" on \ |
24 |
OPTIONS= MENU "Add desktop menu (needs desktop-file-utils)" on \ |
25 |
OMF "Install OMF manual (needs scrollkeeper)" on |
25 |
OMF "Install OMF manual (needs scrollkeeper)" on \ |
|
|
26 |
NLS "Install some translations (work in progress)" on |
26 |
|
27 |
|
27 |
.include <bsd.port.pre.mk> |
28 |
.include <bsd.port.options.mk> |
28 |
|
29 |
|
29 |
.ifndef (NOPORTDOCS) |
30 |
.ifndef (NOPORTDOCS) |
30 |
DOCS= AUTHORS COPYING ChangeLog README |
31 |
DOCS= AUTHORS COPYING ChangeLog README |
Lines 46-66
Link Here
|
46 |
PLIST_SUB+= OMF="@comment " |
47 |
PLIST_SUB+= OMF="@comment " |
47 |
.endif |
48 |
.endif |
48 |
|
49 |
|
|
|
50 |
.ifndef (WITHOUT_NLS) |
51 |
PLIST_SUB+= NLS="" |
52 |
USE_GETTEXT= yes |
53 |
TRANSLATIONS= de |
54 |
.else |
55 |
PLIST_SUB+= NLS="@comment " |
56 |
.endif |
57 |
|
49 |
post-patch: |
58 |
post-patch: |
50 |
${REINPLACE_CMD} -e 's|../usr|${PREFIX}|g' \ |
59 |
${REINPLACE_CMD} -e 's|../usr|${PREFIX}|g' \ |
51 |
${WRKSRC}/src/etc/${PORTNAME}rc |
60 |
${WRKSRC}/src/etc/${PORTNAME}rc |
|
|
61 |
${REINPLACE_CMD} -e 's|/etc|${PREFIX}/etc|g' \ |
62 |
${WRKSRC}/src/etc/${PORTNAME}rc |
52 |
|
63 |
|
53 |
do-install: |
64 |
do-install: |
54 |
${INSTALL_SCRIPT} ${WRKSRC}/src/usr/bin/${PORTNAME} \ |
65 |
${INSTALL_SCRIPT} ${WRKSRC}/src/usr/bin/${PORTNAME} \ |
55 |
${PREFIX}/bin/${PORTNAME} |
66 |
${PREFIX}/bin/${PORTNAME} |
56 |
|
|
|
57 |
${INSTALL_DATA} ${WRKSRC}/src/etc/${PORTNAME}rc ${PREFIX}/etc/ |
67 |
${INSTALL_DATA} ${WRKSRC}/src/etc/${PORTNAME}rc ${PREFIX}/etc/ |
58 |
|
68 |
|
59 |
post-install: |
69 |
post-install: |
60 |
${MKDIR} ${DATADIR}/syntax |
70 |
${MKDIR} ${DATADIR}/syntax |
61 |
${INSTALL_DATA} ${WRKSRC}/src/usr/share/${PORTNAME}/syntax/*.syntax \ |
71 |
${INSTALL_DATA} ${WRKSRC}/src/usr/share/${PORTNAME}/syntax/*.syntax \ |
62 |
${DATADIR}/syntax/ |
72 |
${DATADIR}/syntax/ |
63 |
|
|
|
64 |
${INSTALL_MAN} ${WRKSRC}/src/usr/share/man/man1/*.1 \ |
73 |
${INSTALL_MAN} ${WRKSRC}/src/usr/share/man/man1/*.1 \ |
65 |
${MANPREFIX}/man/man1/ |
74 |
${MANPREFIX}/man/man1/ |
66 |
|
75 |
|
Lines 69-103
Link Here
|
69 |
for n in ${DOCS}; do \ |
78 |
for n in ${DOCS}; do \ |
70 |
${INSTALL_MAN} ${WRKSRC}/$${n} ${DOCSDIR}; \ |
79 |
${INSTALL_MAN} ${WRKSRC}/$${n} ${DOCSDIR}; \ |
71 |
done |
80 |
done |
|
|
81 |
.endif |
72 |
|
82 |
|
|
|
83 |
.ifndef (WITHOUT_NLS) |
84 |
for x in ${TRANSLATIONS}; do \ |
85 |
${MKDIR} ${PREFIX}/share/locale/$${x}/LC_MESSAGES; \ |
86 |
${MKDIR} ${WRKSRC}/translations/$${x}; \ |
87 |
${PREFIX}/bin/msgfmt -c -v ${WRKSRC}/translations/$${x}.po \ |
88 |
-o ${WRKSRC}/translations/$${x}/${PORTNAME}.mo; \ |
89 |
${INSTALL_DATA} ${WRKSRC}/translations/$${x}/*.mo \ |
90 |
${PREFIX}/share/locale/$${x}/LC_MESSAGES/; \ |
91 |
done |
73 |
.endif |
92 |
.endif |
74 |
|
93 |
|
75 |
.ifdef (WITH_OMF) |
94 |
.ifdef (WITH_OMF) |
76 |
|
|
|
77 |
${MKDIR} ${PREFIX}/share/gnome/help/${PORTNAME}/C |
95 |
${MKDIR} ${PREFIX}/share/gnome/help/${PORTNAME}/C |
78 |
${INSTALL_DATA} ${WRKSRC}/src/usr/share/gnome/help/${PORTNAME}/C/*.xml \ |
96 |
${INSTALL_DATA} ${WRKSRC}/src/usr/share/gnome/help/${PORTNAME}/C/*.xml \ |
79 |
${PREFIX}/share/gnome/help/${PORTNAME}/C/ |
97 |
${PREFIX}/share/gnome/help/${PORTNAME}/C/ |
80 |
|
|
|
81 |
${MKDIR} ${PREFIX}/share/omf/${PORTNAME} |
98 |
${MKDIR} ${PREFIX}/share/omf/${PORTNAME} |
82 |
${INSTALL_DATA} ${WRKSRC}/src/usr/share/omf/${PORTNAME}/*.omf \ |
99 |
${INSTALL_DATA} ${WRKSRC}/src/usr/share/omf/${PORTNAME}/*.omf \ |
83 |
${PREFIX}/share/omf/${PORTNAME}/ |
100 |
${PREFIX}/share/omf/${PORTNAME}/ |
84 |
|
|
|
85 |
${PREFIX}/bin/scrollkeeper-update -q |
101 |
${PREFIX}/bin/scrollkeeper-update -q |
86 |
|
|
|
87 |
.endif |
102 |
.endif |
88 |
|
103 |
|
89 |
.ifdef (WITH_MENU) |
104 |
.ifdef (WITH_MENU) |
90 |
|
|
|
91 |
${MKDIR} ${PREFIX}/share/pixmaps |
105 |
${MKDIR} ${PREFIX}/share/pixmaps |
92 |
${INSTALL_DATA} ${WRKSRC}/src/usr/share/pixmaps/${PORTNAME}.png \ |
106 |
${INSTALL_DATA} ${WRKSRC}/src/usr/share/pixmaps/${PORTNAME}.png \ |
93 |
${PREFIX}/share/pixmaps/ |
107 |
${PREFIX}/share/pixmaps/ |
94 |
|
|
|
95 |
${MKDIR} ${PREFIX}/share/applications |
108 |
${MKDIR} ${PREFIX}/share/applications |
96 |
${INSTALL_DATA} ${WRKSRC}/src/usr/share/applications/*.desktop \ |
109 |
${INSTALL_DATA} ${WRKSRC}/src/usr/share/applications/*.desktop \ |
97 |
${DESKTOPDIR} |
110 |
${DESKTOPDIR} |
98 |
|
|
|
99 |
${PREFIX}/bin/update-desktop-database |
111 |
${PREFIX}/bin/update-desktop-database |
100 |
|
|
|
101 |
.endif |
112 |
.endif |
102 |
|
113 |
|
103 |
.include <bsd.port.post.mk> |
114 |
.include <bsd.port.mk> |