From owner-svn-ports-head@FreeBSD.ORG Wed Mar 12 20:21:57 2014 Return-Path: Delivered-To: svn-ports-head@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 7F62AB37; Wed, 12 Mar 2014 20:21:57 +0000 (UTC) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:1900:2254:2068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 6C015CAD; Wed, 12 Mar 2014 20:21:57 +0000 (UTC) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.8/8.14.8) with ESMTP id s2CKLvus083850; Wed, 12 Mar 2014 20:21:57 GMT (envelope-from nemysis@svn.freebsd.org) Received: (from nemysis@localhost) by svn.freebsd.org (8.14.8/8.14.8/Submit) id s2CKLvMC083848; Wed, 12 Mar 2014 20:21:57 GMT (envelope-from nemysis@svn.freebsd.org) Message-Id: <201403122021.s2CKLvMC083848@svn.freebsd.org> From: Rusmir Dusko Date: Wed, 12 Mar 2014 20:21:57 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r348002 - head/graphics/diacanvas2 X-SVN-Group: ports-head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-head@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: SVN commit messages for the ports tree for head List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 12 Mar 2014 20:21:57 -0000 Author: nemysis Date: Wed Mar 12 20:21:56 2014 New Revision: 348002 URL: http://svnweb.freebsd.org/changeset/ports/348002 QAT: https://qat.redports.org/buildarchive/r348002/ Log: - Add license (GPLv2) - Add NLS Option and OPTIONS_SUB - Change REINPLACE, install conditional NLS - Strip libraries - Recreate pkg-plist with make makeplist PR: ports/179336 Submitted by: nemysis (self) Modified: head/graphics/diacanvas2/Makefile head/graphics/diacanvas2/pkg-plist Modified: head/graphics/diacanvas2/Makefile ============================================================================== --- head/graphics/diacanvas2/Makefile Wed Mar 12 20:11:00 2014 (r348001) +++ head/graphics/diacanvas2/Makefile Wed Mar 12 20:21:56 2014 (r348002) @@ -11,32 +11,45 @@ DISTNAME= ${PORTNAME}_${PORTVERSION} MAINTAINER= ports@FreeBSD.org COMMENT= General drawing canvas from dia dialog editor +LICENSE= GPLv2 + USES= gmake pathfix pkgconfig USE_GNOME= pygnome2 USE_PYTHON= yes USE_AUTOTOOLS= libtool -CPPFLAGS+= -I${LOCALBASE}/include -LDFLAGS+= -L${LOCALBASE}/lib USE_LDCONFIG= yes MAKE_JOBS_UNSAFE= yes +CPPFLAGS+= -I${LOCALBASE}/include +LDFLAGS+= -L${LOCALBASE}/lib + WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION} -OPTIONS_DEFINE= PRINT +OPTIONS_DEFINE= NLS PRINT OPTIONS_DEFAULT=PRINT PRINT_DESC= GNOME print support +OPTIONS_SUB= yes + +PRINT_CONFIGURE_ENABLE= gnome-print .include .if ${PORT_OPTIONS:MPRINT} USE_GNOME+= libgnomeprintui -CONFIGURE_ARGS+=--enable-gnome-print -.else -CONFIGURE_ARGS+=--disable-gnome-print .endif post-patch: - @${REINPLACE_CMD} -e \ - 's|unit_tests doc|unit_tests|g' ${WRKSRC}/Makefile.in + @${REINPLACE_CMD} -e '/SUBDIRS/s|doc||' ${WRKSRC}/Makefile.in + +.if ! ${PORT_OPTIONS:MNLS} + @${REINPLACE_CMD} -e 's|po diacanvas po |diacanvas |' \ + ${WRKSRC}/Makefile.in +.endif + +post-install: + ${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/lib${PORTNAME}.so.0 +.for l in _canvasmodule shapemodule viewmodule geometrymodule + ${STRIP_CMD} ${STAGEDIR}${PYTHON}${PYTHON_SITELIBDIR}/diacanvas/${l}.so +.endfor .include Modified: head/graphics/diacanvas2/pkg-plist ============================================================================== --- head/graphics/diacanvas2/pkg-plist Wed Mar 12 20:11:00 2014 (r348001) +++ head/graphics/diacanvas2/pkg-plist Wed Mar 12 20:21:56 2014 (r348002) @@ -46,13 +46,6 @@ lib/libdiacanvas2.a lib/libdiacanvas2.la lib/libdiacanvas2.so lib/libdiacanvas2.so.0 -libdata/pkgconfig/diacanvas2.pc -share/locale/nl/LC_MESSAGES/diacanvas.mo -share/pygtk/2.0/defs/dia-boxed.defs -share/pygtk/2.0/defs/diacanvas.defs -share/pygtk/2.0/defs/diageometry.defs -share/pygtk/2.0/defs/diashape.defs -share/pygtk/2.0/defs/diaview.defs %%PYTHON_SITELIBDIR%%/diacanvas/__init__.py %%PYTHON_SITELIBDIR%%/diacanvas/__init__.pyc %%PYTHON_SITELIBDIR%%/diacanvas/__init__.pyo @@ -71,5 +64,12 @@ share/pygtk/2.0/defs/diaview.defs %%PYTHON_SITELIBDIR%%/diacanvas/viewmodule.a %%PYTHON_SITELIBDIR%%/diacanvas/viewmodule.la %%PYTHON_SITELIBDIR%%/diacanvas/viewmodule.so +libdata/pkgconfig/diacanvas2.pc +%%NLS%%share/locale/nl/LC_MESSAGES/diacanvas.mo +share/pygtk/2.0/defs/dia-boxed.defs +share/pygtk/2.0/defs/diacanvas.defs +share/pygtk/2.0/defs/diageometry.defs +share/pygtk/2.0/defs/diashape.defs +share/pygtk/2.0/defs/diaview.defs @dirrm %%PYTHON_SITELIBDIR%%/diacanvas @dirrm include/diacanvas