From ad02239a3656534fadc835352b201b7f6b2556ae Mon Sep 17 00:00:00 2001 From: Emanuel Haupt Date: Tue, 9 Aug 2011 13:19:19 +0000 Subject: - Fix MASTER_SITES - Add LICENSE - Add MAKE_JOBS_SAFE PR: 159436 Submitted by: KATO Tsuguru --- editors/gnotepad+/Makefile | 49 +++++++++++++++++++++++++++------------------- 1 file changed, 29 insertions(+), 20 deletions(-) diff --git a/editors/gnotepad+/Makefile b/editors/gnotepad+/Makefile index a96e338a9556..65997506318b 100644 --- a/editors/gnotepad+/Makefile +++ b/editors/gnotepad+/Makefile @@ -9,40 +9,34 @@ PORTNAME= gnotepad+ PORTVERSION= 1.3.3 PORTREVISION= 8 CATEGORIES= editors www gnome -MASTER_SITES= SF/gnotepad/gnotepad-stable/${PORTVERSION} +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}-${PORTVERSION}${EXTRACT_SUFX} \ - ${PORTNAME}-help-${DOCVERSION}${EXTRACT_SUFX} +DISTFILES+= ${PORTNAME}-help-${DOCVERSION}${EXTRACT_SUFX}:doc .endif MAINTAINER= ports@FreeBSD.org COMMENT= Simple GTK-based text/HTML editor -DOCVERSION= 1.2.0 +LICENSE= GPLv2 GPLv3 +LICENSE_COMB= dual -USE_GETTEXT= yes USE_XORG= xpm -WANT_GNOME= yes USE_GNOME= gnomeprefix gtk12 +USE_GETTEXT= yes GNU_CONFIGURE= yes -CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \ - LIBS="-L${LOCALBASE}/lib" +CONFIGURE_ENV= LDFLAGS="${LDFLAGS}" +MAKE_JOBS_SAFE= yes -MAN1= gnp.1 +MAN1= gnp.1 -.include +CPPFLAGS= -I${LOCALBASE}/include +LDFLAGS= -L${LOCALBASE}/lib -post-patch: - @${REINPLACE_CMD} -e 's|\(use_gtkhtml=\)yes|\1no|g' ${WRKSRC}/configure +DOCVERSION= 1.2.0 -.if !defined(NOPORTDOCS) -PLIST_SUB+= NOPORTDOCS="@comment " -post-extract: - @${MV} ${WRKSRC}/docs ${WRKSRC}/docs.old - @${CP} -R ${WRKDIR}/${PORTNAME}-help-${DOCVERSION}/docs ${WRKSRC}/docs -.else -PLIST_SUB+= NOPORTDOCS="" -.endif +.include .if ${HAVE_GNOME:Mgnomelibs}!="" USE_GNOME+= gnomelibs @@ -51,4 +45,19 @@ PKGNAMESUFFIX= -gnome CONFIGURE_ARGS+=--disable-gnome .endif +.if defined(NOPORTDOCS) +PLIST_SUB+= NOPORTDOCS="" +.else +PLIST_SUB+= NOPORTDOCS="@comment " +.endif + +post-extract: +.if !defined(NOPORTDOCS) + @${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 + .include -- cgit v1.2.3