Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 24 Sep 2013 21:28:32 +0000 (UTC)
From:      Rusmir Dusko <nemysis@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r328197 - in head/graphics/ampasCTL: . files
Message-ID:  <201309242128.r8OLSWaa061270@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: nemysis
Date: Tue Sep 24 21:28:32 2013
New Revision: 328197
URL: http://svnweb.freebsd.org/changeset/ports/328197

Log:
  - Bump portrevision
  - Change master sites SF --> GH, recreate tarball
  - Change maintainer email gmx.ch --> FreeBSD.org
  - Use the new format for LIB_DEPENDS
  - USES pathfix pkgconfig
  - Add dependency for aclocal
  - Add DOCS Option, change and remove from pkg-plist
  - Use pathfix and REINPLACE_CMD instead of simple patches
  - Change WWW
  
  Approved by:	wg/pawel (mentors)

Deleted:
  head/graphics/ampasCTL/files/
Modified:
  head/graphics/ampasCTL/Makefile
  head/graphics/ampasCTL/distinfo   (contents, props changed)
  head/graphics/ampasCTL/pkg-descr   (contents, props changed)
  head/graphics/ampasCTL/pkg-plist

Modified: head/graphics/ampasCTL/Makefile
==============================================================================
--- head/graphics/ampasCTL/Makefile	Tue Sep 24 21:21:48 2013	(r328196)
+++ head/graphics/ampasCTL/Makefile	Tue Sep 24 21:28:32 2013	(r328197)
@@ -3,29 +3,54 @@
 
 PORTNAME=	ampasCTL
 PORTVERSION=	1.4.1
+PORTREVISION=	1
 CATEGORIES=	graphics devel
-MASTER_SITES=	SF/${PORTNAME:L}/ctl/ctl-${PORTVERSION}/
 DISTNAME=	ctl-${DISTVERSION}
 
-MAINTAINER=	nemysis@gmx.ch
+MAINTAINER=	nemysis@FreeBSD.org
 COMMENT=	Color Transformation Language interpreter
 
 LICENSE=	BSD
 
-LIB_DEPENDS=	Imath:${PORTSDIR}/graphics/ilmbase
+LIB_DEPENDS=	libImath.so:${PORTSDIR}/graphics/ilmbase
 
-USES=		pkgconfig
-USE_LDCONFIG=	yes
+WRKSRC=		${WRKDIR}/ampas-CTL-${GH_COMMIT}/CTL
+
+USE_GITHUB=	yes
+GH_ACCOUNT=	ampas
+GH_PROJECT=	CTL
+GH_TAGNAME=	${GH_COMMIT}
+GH_COMMIT=	ca179ca
+
+USES=		pathfix pkgconfig
+PATHFIX_MAKEFILEIN=	 Makefile.am
 GNU_CONFIGURE=	yes
-USE_AUTOTOOLS=	libtool
+USE_AUTOTOOLS=	aclocal libtool
+USE_LDCONFIG=	yes
+
+PORTDOCS=	*
 
-PORTDOCS=	AUTHORS ChangeLog NEWS README
+DOCSRCDIR1=	${WRKSRC}
+DOC_FILES1=	AUTHORS ChangeLog NEWS README
+
+DOCSRCDIR2=	${WRKSRC}/doc
+DOCSDIR2=	${DOCSDIR}/doc
+DOC_FILES2=	CtlManual.pdf CtlManual.doc
+
+OPTIONS_DEFINE=	DOCS
 
 NO_STAGE=	yes
 .include <bsd.port.options.mk>
 
+pre-configure:
+	@(cd ${WRKSRC} && ${SETENV} ${CONFIGURE_ENV} ./bootstrap)
+
+post-patch:
+	@${REINPLACE_CMD} -e 's|CtlManual.pdf CtlManual.doc||' \
+		${WRKSRC}/doc/Makefile.am
+
 test check:	build
-	@(cd ${WRKSRC}; ${SETENV} ${MAKE_ENV} ${MAKE} ${MAKE_FLAGS} ${MAKEFILE} ${MAKE_ARGS} check)
+	@(cd ${WRKSRC} ; ${SETENV} ${MAKE_ENV} ${MAKE} ${MAKE_FLAGS} ${MAKEFILE} ${MAKE_ARGS} check)
 
 .if defined(PACKAGE_BUILDING)
 pre-install:	test
@@ -33,8 +58,10 @@ pre-install:	test
 
 post-install:
 .if ${PORT_OPTIONS:MDOCS}
-	${MKDIR} ${DOCSDIR}
-	${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${DOCSDIR}
+	@${MKDIR} ${DOCSDIR}
+	${INSTALL_DATA} ${DOC_FILES1:S|^|${DOCSRCDIR1}/|} ${DOCSDIR}
+	@${MKDIR} ${DOCSDIR2}
+	${INSTALL_DATA} ${DOC_FILES2:S|^|${DOCSRCDIR2}/|} ${DOCSDIR2}
 .endif
 
 .include <bsd.port.mk>

Modified: head/graphics/ampasCTL/distinfo
==============================================================================
--- head/graphics/ampasCTL/distinfo	Tue Sep 24 21:21:48 2013	(r328196)
+++ head/graphics/ampasCTL/distinfo	Tue Sep 24 21:28:32 2013	(r328197)
@@ -1,2 +1,2 @@
-SHA256 (ctl-1.4.1.tar.gz) = b202d9552eeb81f3ded66a6786719f6e1138fa4e31c866799b1efad6ef7a9f9a
-SIZE (ctl-1.4.1.tar.gz) = 996923
+SHA256 (ctl-1.4.1.tar.gz) = 89757647d8a3b53d1cf8e356c4d01c1112f7b57f518b052829339e0a4cd5ac39
+SIZE (ctl-1.4.1.tar.gz) = 1127090

Modified: head/graphics/ampasCTL/pkg-descr
==============================================================================
--- head/graphics/ampasCTL/pkg-descr	Tue Sep 24 21:21:48 2013	(r328196)
+++ head/graphics/ampasCTL/pkg-descr	Tue Sep 24 21:28:32 2013	(r328197)
@@ -19,6 +19,4 @@ IlmCtlMathTest  Confidence tests for Ilm
 
 IlmCtlTest      Confidence tests for IlmImfCtl
 
-WWW:	http://www.openexr.com/
-WWW:	http://www.oscars.org/science-technology/council/projects/ctl.html
-WWW:	http://ampasctl.sourceforge.net/
+WWW: https://github.com/ampas/CTL/

Modified: head/graphics/ampasCTL/pkg-plist
==============================================================================
--- head/graphics/ampasCTL/pkg-plist	Tue Sep 24 21:21:48 2013	(r328196)
+++ head/graphics/ampasCTL/pkg-plist	Tue Sep 24 21:28:32 2013	(r328197)
@@ -32,7 +32,4 @@ lib/libIlmCtlSimd.la
 lib/libIlmCtlSimd.so
 lib/libIlmCtlSimd.so.2
 libdata/pkgconfig/CTL.pc
-%%PORTDOCS%%%%DOCSDIR%%/CtlManual.doc
-%%PORTDOCS%%%%DOCSDIR%%/CtlManual.pdf
-%%PORTDOCS%%@dirrm %%DOCSDIR%%
-@dirrmtry include/CTL
+@dirrm include/CTL



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201309242128.r8OLSWaa061270>