aboutsummaryrefslogtreecommitdiffstats
path: root/x11-fm
diff options
context:
space:
mode:
authorkrion <krion@FreeBSD.org>2004-04-18 14:51:43 +0800
committerkrion <krion@FreeBSD.org>2004-04-18 14:51:43 +0800
commitd9f8d9f905229f246843b3f770aa1bed63624a5d (patch)
tree34fb322c535e0da3a45d8f9287fb030bacf12a9b /x11-fm
parent0ea7db2b8094a21eda9c16ab519560eb1ef84921 (diff)
downloadfreebsd-ports-gnome-d9f8d9f905229f246843b3f770aa1bed63624a5d.tar.gz
freebsd-ports-gnome-d9f8d9f905229f246843b3f770aa1bed63624a5d.tar.zst
freebsd-ports-gnome-d9f8d9f905229f246843b3f770aa1bed63624a5d.zip
- Fix package build
Diffstat (limited to 'x11-fm')
-rw-r--r--x11-fm/gentoo/Makefile12
-rw-r--r--x11-fm/gentoo/pkg-plist24
2 files changed, 24 insertions, 12 deletions
diff --git a/x11-fm/gentoo/Makefile b/x11-fm/gentoo/Makefile
index ac6ce4d117f2..f75db5b51eb2 100644
--- a/x11-fm/gentoo/Makefile
+++ b/x11-fm/gentoo/Makefile
@@ -7,6 +7,7 @@
PORTNAME= gentoo
PORTVERSION= 0.11.48
+PORTREVISION= 1
CATEGORIES= x11-fm
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= ${PORTNAME}
@@ -15,14 +16,25 @@ MAINTAINER= ports@FreeBSD.org
COMMENT= Gtk+ based, file manager inspired by DirectoryOpus
USE_GNOME= gtk12
+USE_ICONV= yes
USE_REINPLACE= yes
GNU_CONFIGURE= yes
+CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
+ LIBS="-L${LOCALBASE}/lib"
MAN1= gentoo.1
MYPORTDOCS= BUGS CONFIG-CHANGES CREDITS NEWS README README.NLS \
README.gtkrc TODO
+.if !defined(WITHOUT_NLS)
+USE_GETTEXT= yes
+PLIST_SUB+= NLS=""
+.else
+CONFIGURE_ARGS+=--disable-nls
+PLIST_SUB+= NLS="@comment "
+.endif
+
post-patch:
@${REINPLACE_CMD} -e 's|icons|${DATADIR}/icons|g' ${WRKSRC}/gentoorc.in
@${REINPLACE_CMD} -e 's|-O2|${CFLAGS}|g' ${WRKSRC}/configure
diff --git a/x11-fm/gentoo/pkg-plist b/x11-fm/gentoo/pkg-plist
index 342dbc489849..2fdc9475b6d0 100644
--- a/x11-fm/gentoo/pkg-plist
+++ b/x11-fm/gentoo/pkg-plist
@@ -1,7 +1,6 @@
bin/gentoo
etc/gentoogtkrc
etc/gentoorc
-lib/charset.alias
%%PORTDOCS%%%%DOCSDIR%%/BUGS
%%PORTDOCS%%%%DOCSDIR%%/CONFIG-CHANGES
%%PORTDOCS%%%%DOCSDIR%%/CREDITS
@@ -213,19 +212,20 @@ share/gentoo/icons/xbm2.xpm
share/gentoo/icons/xcf.xpm
share/gentoo/icons/xpm.xpm
share/gentoo/icons/xpm2.xpm
-share/locale/de/LC_MESSAGES/gentoo.mo
-share/locale/fr/LC_MESSAGES/gentoo.mo
-share/locale/locale.alias
-share/locale/pl/LC_MESSAGES/gentoo.mo
-share/locale/sv/LC_MESSAGES/gentoo.mo
-share/locale/ru_RU.CP1251/LC_MESSAGES/gentoo.mo
-share/locale/ru_RU.KOI8-R/LC_MESSAGES/gentoo.mo
-share/locale/ru_RU.UTF-8/LC_MESSAGES/gentoo.mo
-share/locale/ru_RU.cp1251/LC_MESSAGES/gentoo.mo
-share/locale/ru_RU.koi8r/LC_MESSAGES/gentoo.mo
-share/locale/ru_RU.utf8/LC_MESSAGES/gentoo.mo
+%%NLS%%share/locale/de/LC_MESSAGES/gentoo.mo
+%%NLS%%share/locale/fr/LC_MESSAGES/gentoo.mo
+%%NLS%%share/locale/pl/LC_MESSAGES/gentoo.mo
+%%NLS%%share/locale/sv/LC_MESSAGES/gentoo.mo
+%%NLS%%share/locale/ru_RU.CP1251/LC_MESSAGES/gentoo.mo
+%%NLS%%share/locale/ru_RU.KOI8-R/LC_MESSAGES/gentoo.mo
+%%NLS%%share/locale/ru_RU.UTF-8/LC_MESSAGES/gentoo.mo
+%%NLS%%share/locale/ru_RU.cp1251/LC_MESSAGES/gentoo.mo
+%%NLS%%share/locale/ru_RU.koi8r/LC_MESSAGES/gentoo.mo
+%%NLS%%share/locale/ru_RU.utf8/LC_MESSAGES/gentoo.mo
@dirrm share/gentoo/icons
@dirrm share/gentoo
+@unexec rmdir %D/share/locale/de/LC_MESSAGES 2> /dev/null || true
+@unexec rmdir %D/share/locale/de 2> /dev/null || true
@unexec rmdir %D/share/locale/fr/LC_MESSAGES 2> /dev/null || true
@unexec rmdir %D/share/locale/fr 2> /dev/null || true
@unexec rmdir %D/share/locale/pl/LC_MESSAGES 2> /dev/null || true