aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormiwi <miwi@FreeBSD.org>2009-12-22 19:39:08 +0800
committermiwi <miwi@FreeBSD.org>2009-12-22 19:39:08 +0800
commit98853886bdc3e188f97eed9339250b8a3d55b846 (patch)
tree8dc1358fffe2e85fdfea5d09a9d6901c6692f20b
parent193b33986f5c11c2694262b643a9999ddedc6f38 (diff)
downloadfreebsd-ports-gnome-98853886bdc3e188f97eed9339250b8a3d55b846.tar.gz
freebsd-ports-gnome-98853886bdc3e188f97eed9339250b8a3d55b846.tar.zst
freebsd-ports-gnome-98853886bdc3e188f97eed9339250b8a3d55b846.zip
- Fix NOPORT*
PR: 139885 Submitted by: Marco Bröder <marco.broeder@gmx.eu> (maintainer)
-rw-r--r--devel/diffuse/Makefile25
1 files changed, 21 insertions, 4 deletions
diff --git a/devel/diffuse/Makefile b/devel/diffuse/Makefile
index 101bb8fe72fd..3bdb56dd0419 100644
--- a/devel/diffuse/Makefile
+++ b/devel/diffuse/Makefile
@@ -7,6 +7,7 @@
PORTNAME= diffuse
PORTVERSION= 0.4.1
+PORTREVISION= 1
CATEGORIES= devel python
MASTER_SITES= SF
@@ -20,7 +21,6 @@ USE_GNOME= pygtk2
USE_BZIP2= yes
MAN1= diffuse.1
-PORTDATA= syntax
OPTIONS= MENU "Add desktop menu (needs desktop-file-utils)" on \
OMF "Install OMF manual (needs scrollkeeper)" on \
@@ -32,6 +32,10 @@ OPTIONS= MENU "Add desktop menu (needs desktop-file-utils)" on \
PORTDOCS= AUTHORS COPYING ChangeLog README
.endif
+.ifndef (NOPORTDATA)
+PORTDATA= syntax
+.endif
+
.ifdef (WITH_MENU)
PLIST_SUB+= MENU=""
USE_GNOME+= desktopfileutils
@@ -56,8 +60,18 @@ PLIST_SUB+= NLS="@comment "
.endif
post-patch:
+.ifndef (NOPORTDATA)
${REINPLACE_CMD} -e 's|../usr|${PREFIX}|g; s|/etc|${PREFIX}/etc|g' \
${WRKSRC}/src/etc/${PORTNAME}rc
+.else
+ ${REINPLACE_CMD} -e 's|import ../usr|\#(Disabled by NOPORTDATA !) \
+ import ${PREFIX}|g; s|/etc|${PREFIX}/etc|g' \
+ ${WRKSRC}/src/etc/${PORTNAME}rc
+.endif
+
+ ${REINPLACE_CMD} -e 's|../../etc|${PREFIX}/etc|g' \
+ ${WRKSRC}/src/usr/bin/${PORTNAME}
+
${REINPLACE_CMD} -e 's|/usr/share|${PREFIX}/share|g' \
${WRKSRC}/src/usr/share/omf/${PORTNAME}/${PORTNAME}-C.omf
@@ -67,9 +81,6 @@ do-install:
${INSTALL_DATA} ${WRKSRC}/src/etc/${PORTNAME}rc ${PREFIX}/etc/
post-install:
- ${MKDIR} ${DATADIR}/syntax
- (cd ${WRKSRC}/src/usr/share/${PORTNAME}/ && \
- ${COPYTREE_SHARE} \* ${DATADIR}/)
${INSTALL_MAN} ${WRKSRC}/src/usr/share/man/man1/*.1 \
${MANPREFIX}/man/man1/
@@ -80,6 +91,12 @@ post-install:
done
.endif
+.ifndef (NOPORTDATA)
+ ${MKDIR} ${DATADIR}/syntax
+ (cd ${WRKSRC}/src/usr/share/${PORTNAME}/ && \
+ ${COPYTREE_SHARE} \* ${DATADIR}/)
+.endif
+
.ifndef (WITHOUT_NLS)
for x in ${TRANSLATIONS}; do \
${MKDIR} ${PREFIX}/share/locale/$${x}/LC_MESSAGES; \