diff options
Diffstat (limited to 'devel/idutils')
-rw-r--r-- | devel/idutils/Makefile | 10 | ||||
-rw-r--r-- | devel/idutils/pkg-plist | 2 |
2 files changed, 10 insertions, 2 deletions
diff --git a/devel/idutils/Makefile b/devel/idutils/Makefile index 07d8b9d35eaf..4cc2d272be53 100644 --- a/devel/idutils/Makefile +++ b/devel/idutils/Makefile @@ -7,7 +7,7 @@ PORTNAME= id-utils PORTVERSION= 3.2d -PORTREVISION= 2 +PORTREVISION= 3 CATEGORIES= devel MASTER_SITES= ${MASTER_SITE_GNU_ALPHA} MASTER_SITE_SUBDIR= ${PORTNAME} @@ -33,6 +33,14 @@ USE_GETTEXT= yes PLIST_SUB+= NLS="" .endif +.if exists(${LOCALBASE}/bin/emacs) +PLIST_SUB+= EMACS="" EMACSDIR=share/emacs +.elif exists(${LOCALBASE}/bin/xemacs) +PLIST_SUB+= EMACS="" EMACSDIR=lib/xemacs +.else +PLIST_SUB+= EMACS="@comment " EMACSDIR="" +.endif + post-patch: @${FIND} ${WRKSRC} -name "Makefile.in" | ${XARGS} ${REINPLACE_CMD} -e \ 's|@EMACS@|no|g' diff --git a/devel/idutils/pkg-plist b/devel/idutils/pkg-plist index 6ae166ac0603..3d78d582d9d7 100644 --- a/devel/idutils/pkg-plist +++ b/devel/idutils/pkg-plist @@ -7,7 +7,7 @@ bin/gid bin/lid bin/mkid bin/xtokid -share/emacs/site-lisp/id-utils.el +%%EMACS%%%%EMACSDIR%%/share/emacs/site-lisp/id-utils.el share/id-lang.map %%NLS%%share/locale/de/LC_MESSAGES/id-utils.mo %%NLS%%share/locale/fr/LC_MESSAGES/id-utils.mo |