diff options
author | pawel <pawel@FreeBSD.org> | 2014-05-06 21:03:45 +0800 |
---|---|---|
committer | pawel <pawel@FreeBSD.org> | 2014-05-06 21:03:45 +0800 |
commit | 696ee0cca9dbab5abd3f2ab08300f251ab080022 (patch) | |
tree | a514f31c58490eeb7980d49bf79bd67f9cd7dbb1 | |
parent | 935fa7bb0f9aa95f2062b9b5f455f1c54cb93edb (diff) | |
download | freebsd-ports-gnome-696ee0cca9dbab5abd3f2ab08300f251ab080022.tar.gz freebsd-ports-gnome-696ee0cca9dbab5abd3f2ab08300f251ab080022.tar.zst freebsd-ports-gnome-696ee0cca9dbab5abd3f2ab08300f251ab080022.zip |
- Add staging support
- Convert to new options framework, use options helper
- Remove gnome1 support leftovers
-rw-r--r-- | editors/gnotepad+/Makefile | 21 | ||||
-rw-r--r-- | editors/gnotepad+/pkg-plist | 3 |
2 files changed, 11 insertions, 13 deletions
diff --git a/editors/gnotepad+/Makefile b/editors/gnotepad+/Makefile index f9fb3cb6ce6d..476010737c66 100644 --- a/editors/gnotepad+/Makefile +++ b/editors/gnotepad+/Makefile @@ -8,9 +8,6 @@ CATEGORIES= editors www gnome MASTER_SITES= SF/gnotepad/gnotepad-stable/${PORTVERSION} \ SF/gnotepad/gnotepad%20User_s%20Manual/${DOCVERSION}:doc DISTFILES= ${PORTNAME}-${PORTVERSION}${EXTRACT_SUFX}:DEFAULT -.if !defined(NOPORTDOCS) -DISTFILES+= ${PORTNAME}-help-${DOCVERSION}${EXTRACT_SUFX}:doc -.endif MAINTAINER= ports@FreeBSD.org COMMENT= Simple GTK-based text/HTML editor @@ -19,13 +16,10 @@ LICENSE= GPLv2 GPLv3 LICENSE_COMB= dual USE_XORG= xpm -WANT_GNOME= yes USE_GNOME= gnomeprefix gtk12 USES= gettext GNU_CONFIGURE= yes -MAN1= gnp.1 - CONFIGURE_ARGS= --disable-gnome CPPFLAGS+= -I${LOCALBASE}/include @@ -33,22 +27,27 @@ LDFLAGS+= -L${LOCALBASE}/lib DOCVERSION= 1.2.0 -NO_STAGE= yes -.include <bsd.port.pre.mk> +OPTIONS_DEFINE= DOCS + +DOCS_DISTFILES= ${PORTNAME}-help-${DOCVERSION}${EXTRACT_SUFX}:doc + +.include <bsd.port.options.mk> -.if defined(NOPORTDOCS) +.if ! ${PORT_OPTIONS:MDOCS} PLIST_SUB+= NOPORTDOCS="" .else PLIST_SUB+= NOPORTDOCS="@comment " .endif post-extract: -.if !defined(NOPORTDOCS) +.if ${PORT_OPTIONS:MDOCS} @${MV} ${WRKSRC}/docs ${WRKSRC}/docs.old @${CP} -R ${WRKDIR}/${PORTNAME}-help-${DOCVERSION}/docs ${WRKSRC}/docs .endif post-patch: @${REINPLACE_CMD} -e 's|\(use_gtkhtml=\)yes|\1no|g' ${WRKSRC}/configure + @${REINPLACE_CMD} '/destdir/ s|gnulocaledir)|DESTDIR)$$(&|' \ + ${WRKSRC}/po/Makefile.in.in -.include <bsd.port.post.mk> +.include <bsd.port.mk> diff --git a/editors/gnotepad+/pkg-plist b/editors/gnotepad+/pkg-plist index 8f9203de79e8..e107fbf23dc1 100644 --- a/editors/gnotepad+/pkg-plist +++ b/editors/gnotepad+/pkg-plist @@ -1,6 +1,5 @@ bin/gnp -%%GNOME:%%share/gnome/apps/Applications/gnotepad+.desktop -%%GNOME:%%share/gnome/apps/Applications/gnotepad+.spec +man/man1/gnp.1.gz share/gnome/help/gnotepad+/C/index.html share/gnome/help/gnotepad+/C/index-5.html share/gnome/help/gnotepad+/C/topic.dat |