mirror of
https://git.freebsd.org/ports.git
synced 2025-07-17 01:09:24 -04:00
Support stage
Use options helpers Prevent configure from detecting emacs
This commit is contained in:
parent
3eaed21587
commit
d3d4bdde88
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=341661
2 changed files with 19 additions and 20 deletions
|
@ -3,6 +3,7 @@
|
||||||
|
|
||||||
PORTNAME= idutils
|
PORTNAME= idutils
|
||||||
PORTVERSION= 4.6
|
PORTVERSION= 4.6
|
||||||
|
PORTREVISION= 1
|
||||||
CATEGORIES= devel
|
CATEGORIES= devel
|
||||||
MASTER_SITES= GNU
|
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]*
|
CONFLICTS= coreutils-[0-9]* linux-gid-[0-9]* sh-utils-[0-9]*
|
||||||
|
|
||||||
USES+= charsetfix
|
|
||||||
LICENSE= GPLv3
|
LICENSE= GPLv3
|
||||||
|
|
||||||
|
OPTIONS_DEFINE= NLS
|
||||||
|
|
||||||
|
USES= charsetfix
|
||||||
USE_XZ= yes
|
USE_XZ= yes
|
||||||
GNU_CONFIGURE= yes
|
GNU_CONFIGURE= yes
|
||||||
|
CONFIGURE_ENV= EMACS='no'
|
||||||
CPPFLAGS+= -I${LOCALBASE}/include
|
CPPFLAGS+= -I${LOCALBASE}/include
|
||||||
LDFLAGS+= -L${LOCALBASE}/lib
|
LDFLAGS+= -L${LOCALBASE}/lib
|
||||||
|
|
||||||
INFO= idutils
|
INFO= idutils
|
||||||
MAN1= aid.1 defid.1 eid.1 fid.1 fnid.1 gid.1 lid.1 mkid.1 xtokid.1
|
|
||||||
|
|
||||||
NO_STAGE= yes
|
NLS_USES= gettext
|
||||||
.include <bsd.port.options.mk>
|
NLS_CONFIGURE_ENABLE= nls
|
||||||
|
|
||||||
.if ${PORT_OPTIONS:MNLS}
|
OPTIONS_SUB= yes
|
||||||
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
|
|
||||||
|
|
||||||
post-install:
|
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>
|
.include <bsd.port.mk>
|
||||||
|
|
|
@ -7,8 +7,16 @@ bin/gid
|
||||||
bin/lid
|
bin/lid
|
||||||
bin/mkid
|
bin/mkid
|
||||||
bin/xtokid
|
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
|
share/emacs/site-lisp/idutils.el
|
||||||
%%ELC%%share/emacs/site-lisp/idutils.elc
|
|
||||||
share/id-lang.map
|
share/id-lang.map
|
||||||
%%NLS%%share/locale/da/LC_MESSAGES/idutils.mo
|
%%NLS%%share/locale/da/LC_MESSAGES/idutils.mo
|
||||||
%%NLS%%share/locale/de/LC_MESSAGES/idutils.mo
|
%%NLS%%share/locale/de/LC_MESSAGES/idutils.mo
|
||||||
|
|
Loading…
Add table
Reference in a new issue