summaryrefslogtreecommitdiff
path: root/editors/gnotepad+
diff options
context:
space:
mode:
authorPawel Pekala <pawel@FreeBSD.org>2014-05-06 13:03:45 +0000
committerPawel Pekala <pawel@FreeBSD.org>2014-05-06 13:03:45 +0000
commit16ee287938b29fb470fae29167c5b11b19812c37 (patch)
treea514f31c58490eeb7980d49bf79bd67f9cd7dbb1 /editors/gnotepad+
parent- Port is stage safe (diff)
- Add staging support
- Convert to new options framework, use options helper - Remove gnome1 support leftovers
Notes
Notes: svn path=/head/; revision=353089
Diffstat (limited to 'editors/gnotepad+')
-rw-r--r--editors/gnotepad+/Makefile21
-rw-r--r--editors/gnotepad+/pkg-plist3
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