svn commit: r353089 - head/editors/gnotepad+
Pawel Pekala
pawel at FreeBSD.org
Tue May 6 13:03:46 UTC 2014
Author: pawel
Date: Tue May 6 13:03:45 2014
New Revision: 353089
URL: http://svnweb.freebsd.org/changeset/ports/353089
QAT: https://qat.redports.org/buildarchive/r353089/
Log:
- Add staging support
- Convert to new options framework, use options helper
- Remove gnome1 support leftovers
Modified:
head/editors/gnotepad+/Makefile
head/editors/gnotepad+/pkg-plist
Modified: head/editors/gnotepad+/Makefile
==============================================================================
--- head/editors/gnotepad+/Makefile Tue May 6 12:48:51 2014 (r353088)
+++ head/editors/gnotepad+/Makefile Tue May 6 13:03:45 2014 (r353089)
@@ -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 at 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>
Modified: head/editors/gnotepad+/pkg-plist
==============================================================================
--- head/editors/gnotepad+/pkg-plist Tue May 6 12:48:51 2014 (r353088)
+++ head/editors/gnotepad+/pkg-plist Tue May 6 13:03:45 2014 (r353089)
@@ -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
More information about the svn-ports-all
mailing list