aboutsummaryrefslogtreecommitdiffstats
path: root/devel
diff options
context:
space:
mode:
authorbapt <bapt@FreeBSD.org>2014-01-29 05:47:19 +0800
committerbapt <bapt@FreeBSD.org>2014-01-29 05:47:19 +0800
commit0996ebdf53b42668b10249ec0b25c3fdc9d74934 (patch)
treef32a8a42c044f6ed560b2d8cb2ed15ae05604b0c /devel
parentfef2ac091475329b413f8de7c379a27fe9a31295 (diff)
downloadfreebsd-ports-gnome-0996ebdf53b42668b10249ec0b25c3fdc9d74934.tar.gz
freebsd-ports-gnome-0996ebdf53b42668b10249ec0b25c3fdc9d74934.tar.zst
freebsd-ports-gnome-0996ebdf53b42668b10249ec0b25c3fdc9d74934.zip
Support stage
Use options helpers Prevent configure from detecting emacs
Diffstat (limited to 'devel')
-rw-r--r--devel/idutils/Makefile33
-rw-r--r--devel/idutils/pkg-plist10
2 files changed, 21 insertions, 22 deletions
diff --git a/devel/idutils/Makefile b/devel/idutils/Makefile
index 7529e0364521..abc4670bb008 100644
--- a/devel/idutils/Makefile
+++ b/devel/idutils/Makefile
@@ -3,6 +3,7 @@
PORTNAME= idutils
PORTVERSION= 4.6
+PORTREVISION= 1
CATEGORIES= devel
MASTER_SITES= GNU
@@ -11,35 +12,25 @@ COMMENT= The classic Berkeley gid/lid tools for looking up variables in code
CONFLICTS= coreutils-[0-9]* linux-gid-[0-9]* sh-utils-[0-9]*
-USES+= charsetfix
LICENSE= GPLv3
+
+OPTIONS_DEFINE= NLS
+
+USES= charsetfix
USE_XZ= yes
GNU_CONFIGURE= yes
+CONFIGURE_ENV= EMACS='no'
CPPFLAGS+= -I${LOCALBASE}/include
LDFLAGS+= -L${LOCALBASE}/lib
INFO= idutils
-MAN1= aid.1 defid.1 eid.1 fid.1 fnid.1 gid.1 lid.1 mkid.1 xtokid.1
-
-NO_STAGE= yes
-.include <bsd.port.options.mk>
-
-.if ${PORT_OPTIONS:MNLS}
-USES+= gettext
-PLIST_SUB+= NLS=""
-.else
-CONFIGURE_ARGS+= --disable-nls
-PLIST_SUB+= NLS="@comment "
-.endif
-
-# Port configure script will auto-install the .elc file if [x]emacs is found
-.if exists(${LOCALBASE}/bin/emacs) || exists(${LOCALBASE}/bin/xemacs)
-PLIST_SUB+= ELC=""
-.else
-PLIST_SUB+= ELC="@comment "
-.endif
+
+NLS_USES= gettext
+NLS_CONFIGURE_ENABLE= nls
+
+OPTIONS_SUB= yes
post-install:
- ${INSTALL_DATA} ${WRKSRC}/lisp/idutils.el ${PREFIX}/share/emacs/site-lisp
+ ${INSTALL_DATA} ${WRKSRC}/lisp/idutils.el ${STAGEDIR}${PREFIX}/share/emacs/site-lisp
.include <bsd.port.mk>
diff --git a/devel/idutils/pkg-plist b/devel/idutils/pkg-plist
index 3bf3a6149eb6..812fa0549d71 100644
--- a/devel/idutils/pkg-plist
+++ b/devel/idutils/pkg-plist
@@ -7,8 +7,16 @@ bin/gid
bin/lid
bin/mkid
bin/xtokid
+man/man1/aid.1.gz
+man/man1/defid.1.gz
+man/man1/eid.1.gz
+man/man1/fid.1.gz
+man/man1/fnid.1.gz
+man/man1/gid.1.gz
+man/man1/lid.1.gz
+man/man1/mkid.1.gz
+man/man1/xtokid.1.gz
share/emacs/site-lisp/idutils.el
-%%ELC%%share/emacs/site-lisp/idutils.elc
share/id-lang.map
%%NLS%%share/locale/da/LC_MESSAGES/idutils.mo
%%NLS%%share/locale/de/LC_MESSAGES/idutils.mo