diff options
author | kwm <kwm@df743ca5-7f9a-e211-a948-0013205c9059> | 2010-10-29 20:12:49 +0800 |
---|---|---|
committer | kwm <kwm@df743ca5-7f9a-e211-a948-0013205c9059> | 2010-10-29 20:12:49 +0800 |
commit | 31e44c56e79146adc8a1c28f0f9f5be1c5130057 (patch) | |
tree | 04df5f1a4875a40f98e9e68c45dad2c1b15582c0 | |
parent | 74730f59e018de3088d07c6e3e460927b89aef83 (diff) | |
download | marcuscom-ports-31e44c56e79146adc8a1c28f0f9f5be1c5130057.tar marcuscom-ports-31e44c56e79146adc8a1c28f0f9f5be1c5130057.tar.gz marcuscom-ports-31e44c56e79146adc8a1c28f0f9f5be1c5130057.tar.bz2 marcuscom-ports-31e44c56e79146adc8a1c28f0f9f5be1c5130057.tar.lz marcuscom-ports-31e44c56e79146adc8a1c28f0f9f5be1c5130057.tar.xz marcuscom-ports-31e44c56e79146adc8a1c28f0f9f5be1c5130057.tar.zst marcuscom-ports-31e44c56e79146adc8a1c28f0f9f5be1c5130057.zip |
Axe support for NOPORTDOCS, it is silly to support this for ports that only
install docs.
git-svn-id: svn://creme-brulee.marcuscom.com/ports/trunk@14850 df743ca5-7f9a-e211-a948-0013205c9059
-rw-r--r-- | devel/glib20-reference/Makefile | 23 | ||||
-rw-r--r-- | devel/glib20-reference/bsd.gnome-reference.mk | 61 | ||||
-rw-r--r-- | devel/glib20-reference/pkg-descr | 3 |
3 files changed, 87 insertions, 0 deletions
diff --git a/devel/glib20-reference/Makefile b/devel/glib20-reference/Makefile new file mode 100644 index 000000000..45fa797b5 --- /dev/null +++ b/devel/glib20-reference/Makefile @@ -0,0 +1,23 @@ +# New ports collection makefile for: glib20-reference +# Date created: 09 May 2006 +# Whom: Jean-Yves Lefort <jylefort@FreeBSD.org> +# +# $FreeBSD: ports/devel/glib20-reference/Makefile,v 1.3 2009/10/25 15:28:39 marcus Exp $ +# + +PORTREVISION= 1 + +BOOKS= glib gobject gio + +glib_MAN= glib-gettextize.1 +gobject_MAN= glib-genmarshal.1 glib-mkenums.1 gobject-query.1 + +MAN1= ${glib_MAN} ${gobject_MAN} + +post-install: +.for m in glib gobject + ${INSTALL_MAN} ${${m}_MAN:S|^|${REFERENCE_SRC}/${m}/|} \ + ${PREFIX}/man/man1 +.endfor + +.include "${.CURDIR}/../../devel/glib20-reference/bsd.gnome-reference.mk" diff --git a/devel/glib20-reference/bsd.gnome-reference.mk b/devel/glib20-reference/bsd.gnome-reference.mk new file mode 100644 index 000000000..827ac40ba --- /dev/null +++ b/devel/glib20-reference/bsd.gnome-reference.mk @@ -0,0 +1,61 @@ +# $FreeBSD: ports/devel/glib20-reference/bsd.gnome-reference.mk,v 1.8 2008/05/29 22:11:58 marcus Exp $ + +PARENTDIR?= ${.CURDIR:S|-reference$||} +REFERENCE_PORT= ${PKGORIGIN:S|-reference$||} + +.include "${PARENTDIR}/Makefile" + +.if !defined(DOCSDIR) +DOCSDIR:= ${PREFIX}/share/doc/${PORTNAME} +.endif +.if !defined(EXAMPLESDIR) +EXAMPLESDIR:= ${PREFIX}/share/examples/${PORTNAME} +.endif +.if defined(DISTNAME) +DISTNAME:= ${DISTNAME} +.else +DISTNAME:= ${PORTNAME}-${DISTVERSIONPREFIX}${DISTVERSION}${DISTVERSIONSUFFIX} +.endif +.if defined(MASTER_SITE_SUBDIR) +MASTER_SITE_SUBDIR:= ${MASTER_SITE_SUBDIR} +.endif +PKGNAMESUFFIX:= ${PKGNAMESUFFIX}-reference +.if defined(LATEST_LINK) +LATEST_LINK:= ${LATEST_LINK}-reference +.endif + +COMMENT= Programming reference for ${REFERENCE_PORT} + +MD5_FILE= ${PARENTDIR}/distinfo + +REFERENCE_SRC?= ${WRKSRC}/docs/reference +BOOKS?= . + +PORTDOCS= * + +.if !target(do-build) +do-build: + @${DO_NADA} +.endif + +make-descr: + @${ECHO_CMD} "This port contains the programming reference for ${REFERENCE_PORT}." > ${DESCR} + @www=`${GREP} "^WWW:" ${PARENTDIR}/pkg-descr` || ${TRUE}; \ + if [ -n "$$www" ]; then \ + ${ECHO_CMD} "" >> ${DESCR}; \ + ${ECHO_CMD} "$$www" >> ${DESCR}; \ + fi + +.if !target(do-install) +do-install: +. for d in ${BOOKS} + if [ -d ${REFERENCE_SRC}/${d}/html ]; then \ + ${MKDIR} ${DOCSDIR}/${d}; \ + cd ${REFERENCE_SRC}/${d}/html && \ + ${FIND} * -type d ! -empty -exec ${MKDIR} "${DOCSDIR}/${d}/{}" \; && \ + ${FIND} * -type f -exec ${INSTALL_DATA} "{}" "${DOCSDIR}/${d}/{}" \; ; \ + fi +. endfor +.endif + +.include <bsd.port.mk> diff --git a/devel/glib20-reference/pkg-descr b/devel/glib20-reference/pkg-descr new file mode 100644 index 000000000..f08eb3e5a --- /dev/null +++ b/devel/glib20-reference/pkg-descr @@ -0,0 +1,3 @@ +This port contains the programming reference for devel/glib20. + +WWW: http://www.gtk.org/ |