Lines 6-30
Link Here
|
6 |
# |
6 |
# |
7 |
|
7 |
|
8 |
PORTNAME= diffuse |
8 |
PORTNAME= diffuse |
9 |
PORTVERSION= 0.4.4 |
9 |
PORTVERSION= 0.4.5 |
10 |
CATEGORIES= devel python |
10 |
CATEGORIES= devel python |
11 |
MASTER_SITES= SF |
11 |
MASTER_SITES= SF |
12 |
|
12 |
|
13 |
MAINTAINER= marco.broeder@gmx.eu |
13 |
MAINTAINER= marco.broeder@gmx.eu |
14 |
COMMENT= A graphical N-way diff and merge tool written in python |
14 |
COMMENT= A graphical N-way diff and merge tool written in python |
15 |
|
15 |
|
|
|
16 |
LICENSE= GPLv2 GPLv3 |
17 |
LICENSE_COMB= dual |
18 |
|
16 |
NO_BUILD= yes |
19 |
NO_BUILD= yes |
17 |
|
20 |
|
18 |
USE_PYTHON= yes |
21 |
USE_PYTHON= yes |
19 |
USE_GNOME= pygtk2 |
22 |
USE_GNOME= pygtk2 |
20 |
USE_BZIP2= yes |
23 |
USE_BZIP2= yes |
21 |
|
24 |
|
22 |
MANLANG= "" ru |
|
|
23 |
MAN1= diffuse.1 |
25 |
MAN1= diffuse.1 |
24 |
|
26 |
|
25 |
OPTIONS= MENU "Add desktop menu (needs desktop-file-utils)" on \ |
27 |
OPTIONS= MENU "Install a desktop menu entry" on \ |
26 |
OMF "Install OMF manual (needs scrollkeeper)" on \ |
28 |
NLS "Install translations (work in progress)" on |
27 |
NLS "Install some translations (work in progress)" on |
|
|
28 |
|
29 |
|
29 |
.include <bsd.port.options.mk> |
30 |
.include <bsd.port.options.mk> |
30 |
|
31 |
|
Lines 43-60
USE_GNOME+= desktopfileutils
Link Here
|
43 |
PLIST_SUB+= MENU="@comment " |
44 |
PLIST_SUB+= MENU="@comment " |
44 |
.endif |
45 |
.endif |
45 |
|
46 |
|
46 |
.ifdef (WITH_OMF) |
|
|
47 |
PLIST_SUB+= OMF="" |
48 |
RUN_DEPENDS+= scrollkeeper-update:${PORTSDIR}/textproc/scrollkeeper |
49 |
INSTALLS_OMF= yes |
50 |
.else |
51 |
PLIST_SUB+= OMF="@comment " |
52 |
.endif |
53 |
|
54 |
.ifndef (WITHOUT_NLS) |
47 |
.ifndef (WITHOUT_NLS) |
55 |
PLIST_SUB+= NLS="" |
48 |
PLIST_SUB+= NLS="" |
56 |
USE_GETTEXT= yes |
49 |
USE_GETTEXT= yes |
57 |
TRANSLATIONS= de es ja ko ru zh_CN |
50 |
TRANSLATIONS= de es it ja ko ru zh_CN |
|
|
51 |
MANLANG= "" it ru |
58 |
.else |
52 |
.else |
59 |
PLIST_SUB+= NLS="@comment " |
53 |
PLIST_SUB+= NLS="@comment " |
60 |
.endif |
54 |
.endif |
Lines 71-79
post-patch:
Link Here
|
71 |
|
65 |
|
72 |
${REINPLACE_CMD} -e 's|../../etc|${PREFIX}/etc|g' \ |
66 |
${REINPLACE_CMD} -e 's|../../etc|${PREFIX}/etc|g' \ |
73 |
${WRKSRC}/src/usr/bin/${PORTNAME} |
67 |
${WRKSRC}/src/usr/bin/${PORTNAME} |
74 |
${REINPLACE_CMD} -e 's|/usr/share|${PREFIX}/share|g' \ |
|
|
75 |
${WRKSRC}/src/usr/share/omf/${PORTNAME}/*.omf \ |
76 |
${WRKSRC}/src/usr/share/gnome/help/${PORTNAME}/*/*.xml |
77 |
|
68 |
|
78 |
do-install: |
69 |
do-install: |
79 |
${INSTALL_SCRIPT} ${WRKSRC}/src/usr/bin/${PORTNAME} \ |
70 |
${INSTALL_SCRIPT} ${WRKSRC}/src/usr/bin/${PORTNAME} \ |
Lines 81-135
do-install:
Link Here
|
81 |
${INSTALL_DATA} ${WRKSRC}/src/etc/${PORTNAME}rc ${PREFIX}/etc/ |
72 |
${INSTALL_DATA} ${WRKSRC}/src/etc/${PORTNAME}rc ${PREFIX}/etc/ |
82 |
${INSTALL_MAN} ${WRKSRC}/src/usr/share/man/man1/*.1 \ |
73 |
${INSTALL_MAN} ${WRKSRC}/src/usr/share/man/man1/*.1 \ |
83 |
${MANPREFIX}/man/man1/ |
74 |
${MANPREFIX}/man/man1/ |
84 |
${MKDIR} ${MANPREFIX}/man/ru/man1 |
|
|
85 |
${INSTALL_MAN} ${WRKSRC}/src/usr/share/man/ru/man1/*.1 \ |
86 |
${MANPREFIX}/man/ru/man1/ |
87 |
|
75 |
|
88 |
post-install: |
76 |
post-install: |
89 |
.ifndef (NOPORTDOCS) |
77 |
.ifndef (NOPORTDOCS) |
90 |
${MKDIR} ${DOCSDIR} |
78 |
${MKDIR} ${DOCSDIR} |
91 |
for n in ${PORTDOCS}; do \ |
79 |
cd ${WRKSRC} && ${INSTALL_DATA} ${PORTDOCS} ${DOCSDIR} |
92 |
${INSTALL_MAN} ${WRKSRC}/$${n} ${DOCSDIR}/; \ |
|
|
93 |
done |
94 |
.endif |
80 |
.endif |
95 |
|
81 |
|
96 |
.ifndef (NOPORTDATA) |
82 |
.ifndef (NOPORTDATA) |
97 |
${MKDIR} ${DATADIR}/syntax |
83 |
${MKDIR} ${DATADIR}/syntax |
98 |
(cd ${WRKSRC}/src/usr/share/${PORTNAME}/ && \ |
84 |
(cd ${WRKSRC}/src/usr/share/${PORTNAME} && \ |
99 |
${COPYTREE_SHARE} \* ${DATADIR}/) |
85 |
${COPYTREE_SHARE} \* ${DATADIR}) |
100 |
.endif |
86 |
.endif |
101 |
|
87 |
|
102 |
.ifndef (WITHOUT_NLS) |
88 |
.ifndef (WITHOUT_NLS) |
103 |
for x in ${TRANSLATIONS}; do \ |
89 |
for x in ${TRANSLATIONS}; do \ |
104 |
${MKDIR} ${PREFIX}/share/locale/$${x}/LC_MESSAGES; \ |
|
|
105 |
${MKDIR} ${WRKSRC}/translations/$${x}; \ |
90 |
${MKDIR} ${WRKSRC}/translations/$${x}; \ |
106 |
${LOCALBASE}/bin/msgfmt -c ${WRKSRC}/translations/$${x}.po \ |
91 |
${LOCALBASE}/bin/msgfmt -c ${WRKSRC}/translations/$${x}.po \ |
107 |
-o ${WRKSRC}/translations/$${x}/${PORTNAME}.mo; \ |
92 |
-o ${WRKSRC}/translations/$${x}/${PORTNAME}.mo; \ |
108 |
${INSTALL_DATA} ${WRKSRC}/translations/$${x}/*.mo \ |
93 |
${INSTALL_DATA} ${WRKSRC}/translations/$${x}/*.mo \ |
109 |
${PREFIX}/share/locale/$${x}/LC_MESSAGES/; \ |
94 |
${PREFIX}/share/locale/$${x}/LC_MESSAGES/; \ |
110 |
done |
95 |
done |
111 |
.endif |
96 |
for y in ${MANLANG}; do \ |
112 |
|
97 |
${MKDIR} ${MANPREFIX}/man/$${y}/man1; \ |
113 |
.ifdef (WITH_OMF) |
98 |
${INSTALL_MAN} ${WRKSRC}/src/usr/share/man/$${y}/man1/*.1 \ |
114 |
${MKDIR} ${PREFIX}/share/gnome/help/${PORTNAME}/C |
99 |
${MANPREFIX}/man/$${y}/man1/; \ |
115 |
${INSTALL_DATA} ${WRKSRC}/src/usr/share/gnome/help/${PORTNAME}/C/*.xml \ |
100 |
done |
116 |
${PREFIX}/share/gnome/help/${PORTNAME}/C/ |
|
|
117 |
${MKDIR} ${PREFIX}/share/gnome/help/${PORTNAME}/ru |
118 |
${INSTALL_DATA} ${WRKSRC}/src/usr/share/gnome/help/${PORTNAME}/ru/*.xml \ |
119 |
${PREFIX}/share/gnome/help/${PORTNAME}/ru/ |
120 |
${MKDIR} ${PREFIX}/share/omf/${PORTNAME} |
121 |
${INSTALL_DATA} ${WRKSRC}/src/usr/share/omf/${PORTNAME}/*.omf \ |
122 |
${PREFIX}/share/omf/${PORTNAME}/ |
123 |
${LOCALBASE}/bin/scrollkeeper-update -q |
124 |
.endif |
101 |
.endif |
125 |
|
102 |
|
126 |
.ifdef (WITH_MENU) |
103 |
.ifdef (WITH_MENU) |
127 |
${MKDIR} ${PREFIX}/share/pixmaps |
|
|
128 |
${INSTALL_DATA} ${WRKSRC}/src/usr/share/pixmaps/${PORTNAME}.png \ |
104 |
${INSTALL_DATA} ${WRKSRC}/src/usr/share/pixmaps/${PORTNAME}.png \ |
129 |
${PREFIX}/share/pixmaps/ |
105 |
${PREFIX}/share/pixmaps/ |
130 |
${MKDIR} ${DESKTOPDIR} |
|
|
131 |
${INSTALL_DATA} ${WRKSRC}/src/usr/share/applications/*.desktop \ |
106 |
${INSTALL_DATA} ${WRKSRC}/src/usr/share/applications/*.desktop \ |
132 |
${DESKTOPDIR}/ |
107 |
${DESKTOPDIR} |
133 |
${LOCALBASE}/bin/update-desktop-database -q |
108 |
${LOCALBASE}/bin/update-desktop-database -q |
134 |
.endif |
109 |
.endif |
135 |
|
110 |
|