Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 14 Feb 2016 21:50:13 +0000 (UTC)
From:      Dmitry Marakasov <amdmi3@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r408902 - head/x11-toolkits/gai
Message-ID:  <201602142150.u1ELoDWe006722@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: amdmi3
Date: Sun Feb 14 21:50:13 2016
New Revision: 408902
URL: https://svnweb.freebsd.org/changeset/ports/408902

Log:
  - Add LICENSE
  - Switch to options helpers
  - Simplify installation
  - Switch to pkg-plist

Added:
  head/x11-toolkits/gai/pkg-plist   (contents, props changed)
Modified:
  head/x11-toolkits/gai/Makefile

Modified: head/x11-toolkits/gai/Makefile
==============================================================================
--- head/x11-toolkits/gai/Makefile	Sun Feb 14 21:49:52 2016	(r408901)
+++ head/x11-toolkits/gai/Makefile	Sun Feb 14 21:50:13 2016	(r408902)
@@ -10,6 +10,9 @@ MASTER_SITES=	SF/${PORTNAME}/GAI%20-%20L
 MAINTAINER=	ports@FreeBSD.org
 COMMENT=	General Applet Interface Library
 
+LICENSE=	LGPL20+
+LICENSE_FILE=	${WRKSRC}/COPYING.LIB
+
 LIB_DEPENDS=	libgtkglext-x11-1.0.so:${PORTSDIR}/x11-toolkits/gtkglext
 
 USES=		gettext-tools pkgconfig tar:bzip2
@@ -21,28 +24,20 @@ CONFIGURE_ENV=	SDLCONF=${SDL_CONFIG}
 CONFIGURE_ARGS=	--disable-gnome
 CPPFLAGS+=	`pkg-config --cflags libgnomeui-2.0`
 
-PLIST_FILES=	include/gai/gai.h lib/libgai.so.${PORTVERSION} \
-		lib/libgai.so.0 lib/libgai.so libdata/pkgconfig/gai.pc \
-		share/locale/de/LC_MESSAGES/gai.mo
 PORTDOCS=	*
+PORTEXAMPLES=	*
 USE_LDCONFIG=	yes
 
-OPTIONS_DEFINE=	DOCS
+OPTIONS_DEFINE=	DOCS EXAMPLES
 
 post-patch:
 	@${REINPLACE_CMD} -e "s|sdl-config --|${SDL_CONFIG} --|g; \
 		s|/usr/X11R6|${LOCALBASE}|g" ${WRKSRC}/configure
 
-post-install:
-	cd ${WRKSRC}/docs && \
-	${FIND} * -type d -exec ${MKDIR} "${STAGEDIR}${DOCSDIR}/{}" \; && \
-	${FIND} * -type f -exec ${INSTALL_DATA} "{}" "${STAGEDIR}${DOCSDIR}/{}" \;
-.for dir in docking examples templates
-	cd ${WRKSRC} && \
-	${FIND} ${dir} -type d -exec ${MKDIR} "${STAGEDIR}${EXAMPLESDIR}/{}" \; && \
-	${FIND} ${dir} -type f -exec ${INSTALL_DATA} "{}" "${STAGEDIR}${EXAMPLESDIR}/{}" \;
-.endfor
-	@${FIND} ${STAGEDIR}${EXAMPLESDIR} -type f | \
-		${SED} "s,^${STAGEDIR}${PREFIX}/,," >> ${TMPPLIST}
+post-install-DOCS-on:
+	cd ${WRKSRC}/docs && ${COPYTREE_SHARE} . ${STAGEDIR}${DOCSDIR}
+
+post-install-EXAMPLES-on:
+	cd ${WRKSRC} && ${COPYTREE_SHARE} "docking examples templates" ${STAGEDIR}${EXAMPLESDIR}
 
 .include <bsd.port.mk>

Added: head/x11-toolkits/gai/pkg-plist
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/x11-toolkits/gai/pkg-plist	Sun Feb 14 21:50:13 2016	(r408902)
@@ -0,0 +1,6 @@
+include/gai/gai.h
+lib/libgai.so
+lib/libgai.so.0
+lib/libgai.so.0.5.10
+libdata/pkgconfig/gai.pc
+share/locale/de/LC_MESSAGES/gai.mo



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