Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 7 Sep 2006 20:44:24 +0200 (CEST)
From:      Marcus von Appen <mva@sysfault.org>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   ports/102991: [Maintainer-update]: print/pslib manual pages and example additions
Message-ID:  <200609071844.k87IiOJi059483@medusa.sysfault.org>
Resent-Message-ID: <200609071850.k87IoEJV058256@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         102991
>Category:       ports
>Synopsis:       [Maintainer-update]: print/pslib manual pages and example additions
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          maintainer-update
>Submitter-Id:   current-users
>Arrival-Date:   Thu Sep 07 18:50:14 GMT 2006
>Closed-Date:
>Last-Modified:
>Originator:     Marcus von Appen
>Release:        FreeBSD 6.1-STABLE i386
>Organization:
>Environment:
System: FreeBSD medusa.sysfault.org 6.1-STABLE FreeBSD 6.1-STABLE #12: Tue Aug 29 19:10:11 CEST 2006 root@medusa.sysfault.org:/usr/obj/usr/src/sys/MEDUSA i386


	
>Description:
	- Optional examples and manpages can be installed on demand now.
        - portlint fixes.
        
        I'll take over maintainership for this port.

        Note to committer:
                The new file files/man3 must be added.

>How-To-Repeat:
	
>Fix:

diff -Nur pslib/Makefile pslib.new/Makefile
--- pslib/Makefile	Tue Aug 15 02:56:23 2006
+++ pslib.new/Makefile	Thu Sep  7 20:28:46 2006
@@ -8,12 +8,11 @@
 
 PORTNAME=	pslib
 PORTVERSION=	0.2.7
-PORTREVISION=	0
 CATEGORIES=	print
 MASTER_SITES=	${MASTER_SITE_SOURCEFORGE}
 MASTER_SITE_SUBDIR=	${PORTNAME}
 
-MAINTAINER=	ports@FreeBSD.org
+MAINTAINER=	mva@sysfault.org
 COMMENT=	A C-library for generating multi page PostScript documents
 
 LIB_DEPENDS=	jpeg.9:${PORTSDIR}/graphics/jpeg \
@@ -24,12 +23,33 @@
 USE_GMAKE=	yes
 USE_AUTOTOOLS=	libtool:15
 CONFIGURE_ENV=	CPPFLAGS="-I${LOCALBASE}/include" \
-		LDFLAGS="-L${LOCALBASE}/lib" \
-		ac_cv_prog_DOC_TO_MAN=""
+		LDFLAGS="-L${LOCALBASE}/lib"
+CONFIGURE_ARGS=	--mandir=${MANPREFIX}/man
 USE_LDCONFIG=	yes
 
+OPTIONS=	EXAMPLES	"Install additional examples" On \
+		MAN		"Install manual pages" On \
+		NLS		"Native language support" On
+
 .include <bsd.port.pre.mk>
 
+.if defined(WITH_EXAMPLES)
+EX_NAME=	pslib-examples-0.0.8
+EX_WRKSRC=	${WRKDIR}/${EX_NAME}
+DISTFILES=	${DISTNAME}${EXTRACT_SUFX} ${EX_NAME}${EXTRACT_SUFX}
+PLIST_SUB+=	EXAMPLES=""
+.else
+PLIST_SUB+=	EXAMPLES="@comment "
+.endif
+
+.if defined(WITH_MAN)
+BUILD_DEPENDS+=	${LOCALBASE}/bin/docbook-to-man:${PORTSDIR}/textproc/docbook-to-man
+MAN3!=	${CAT} ${FILESDIR}/man3
+.else
+# Avoid building the manpages.
+CONFIGURE_ENV+=	ac_cv_prog_DOC_TO_MAN=""
+.endif
+
 .if defined(WITHOUT_NLS)
 CONFIGURE_ENV+=	ac_cv_header_libintl_h=no
 PLIST_SUB+=	NLS="@comment "
@@ -41,6 +61,13 @@
 post-patch:
 .if defined(WITHOUT_NLS)
 	@${REINPLACE_CMD} -e 's|@USE_NLS@|no|g' ${WRKSRC}/po/Makefile.in.in
+.endif
+
+post-install:
+.if defined(WITH_EXAMPLES)
+	${MKDIR} -m 0755 ${EXAMPLESDIR}
+	@${RM} -f ${EX_WRKSRC}/Makefile ${EX_WRKSRC}/ChangeLog
+	cd ${EX_WRKSRC} && ${PAX} -rw * ${EXAMPLESDIR}
 .endif
 
 .include <bsd.port.post.mk>
diff -Nur pslib/distinfo pslib.new/distinfo
--- pslib/distinfo	Mon Jun 12 03:43:27 2006
+++ pslib.new/distinfo	Thu Sep  7 11:09:45 2006
@@ -1,3 +1,6 @@
 MD5 (pslib-0.2.7.tar.gz) = 17a6a461276fd4eb3fd12ced926aeee1
 SHA256 (pslib-0.2.7.tar.gz) = 653ec4b1685500d3eb86dc89093854e1928f040b457556365bd52a31dda9a84d
 SIZE (pslib-0.2.7.tar.gz) = 510671
+MD5 (pslib-examples-0.0.8.tar.gz) = ef7ea1c869047b9510fb1ea55cfa9e76
+SHA256 (pslib-examples-0.0.8.tar.gz) = cfab81f3639e2863e92c226ba6b6a06b0c482afc524d041bcb1df4cbe74f8ebd
+SIZE (pslib-examples-0.0.8.tar.gz) = 175792
diff -Nur pslib/files/man3 pslib.new/files/man3
--- pslib/files/man3	Thu Jan  1 01:00:00 1970
+++ pslib.new/files/man3	Thu Sep  7 20:05:28 2006
@@ -0,0 +1,93 @@
+PS_add_bookmark.3
+PS_add_launchlink.3
+PS_add_locallink.3
+PS_add_note.3
+PS_add_pdflink.3
+PS_add_weblink.3
+PS_arc.3
+PS_arcn.3
+PS_begin_page.3
+PS_begin_pattern.3
+PS_begin_template.3
+PS_boot.3
+PS_circle.3
+PS_clip.3
+PS_close.3
+PS_close_image.3
+PS_closepath.3
+PS_closepath_stroke.3
+PS_continue_text.3
+PS_continue_text2.3
+PS_create_gstate.3
+PS_curveto.3
+PS_delete.3
+PS_end_page.3
+PS_end_pattern.3
+PS_end_template.3
+PS_fill.3
+PS_fill_stroke.3
+PS_findfont.3
+PS_get_buffer.3
+PS_get_majorversion.3
+PS_get_minorversion.3
+PS_get_opaque.3
+PS_get_parameter.3
+PS_get_subminorversion.3
+PS_get_value.3
+PS_hyphenate.3
+PS_include_file.3
+PS_lineto.3
+PS_list_parameters.3
+PS_list_resources.3
+PS_list_values.3
+PS_makespotcolor.3
+PS_moveto.3
+PS_new.3
+PS_new2.3
+PS_open_file.3
+PS_open_fp.3
+PS_open_image.3
+PS_open_image_file.3
+PS_open_mem.3
+PS_place_image.3
+PS_rect.3
+PS_restore.3
+PS_rotate.3
+PS_save.3
+PS_scale.3
+PS_set_border_color.3
+PS_set_border_dash.3
+PS_set_border_style.3
+PS_set_gstate.3
+PS_set_info.3
+PS_set_parameter.3
+PS_set_text_pos.3
+PS_set_value.3
+PS_setcolor.3
+PS_setdash.3
+PS_setflat.3
+PS_setfont.3
+PS_setgray.3
+PS_setlinecap.3
+PS_setlinejoin.3
+PS_setlinewidth.3
+PS_setmiterlimit.3
+PS_setpolydash.3
+PS_shading.3
+PS_shading_pattern.3
+PS_shfill.3
+PS_show.3
+PS_show2.3
+PS_show_boxed.3
+PS_show_xy.3
+PS_show_xy2.3
+PS_shutdown.3
+PS_string_geometry.3
+PS_stringwidth.3
+PS_stringwidth2.3
+PS_stroke.3
+PS_symbol.3
+PS_symbol_name.3
+PS_symbol_width.3
+PS_translate.3
+pslib.3
diff -Nur pslib/pkg-plist pslib.new/pkg-plist
--- pslib/pkg-plist	Thu Feb 23 11:38:47 2006
+++ pslib.new/pkg-plist	Thu Sep  7 20:24:42 2006
@@ -1,4 +1,3 @@
-@comment $FreeBSD: ports/print/pslib/pkg-plist,v 1.5 2006/02/23 10:38:47 ade Exp $
 include/libps/pslib-mp.h
 include/libps/pslib.h
 include/libps/psversion.h
@@ -11,5 +10,40 @@
 %%DATADIR%%/draft.ps
 %%DATADIR%%/exectime.ps
 %%DATADIR%%/grid.ps
+%%EXAMPLES%%%%EXAMPLESDIR%%/AlteSchwabacher.afm
+%%EXAMPLES%%%%EXAMPLESDIR%%/AlteSchwabacher.enc
+%%EXAMPLES%%%%EXAMPLESDIR%%/AlteSchwabacher.pfb
+%%EXAMPLES%%%%EXAMPLESDIR%%/Courier.afm
+%%EXAMPLES%%%%EXAMPLESDIR%%/Helvetica.afm
+%%EXAMPLES%%%%EXAMPLESDIR%%/Helvetica.pro
+%%EXAMPLES%%%%EXAMPLESDIR%%/README
+%%EXAMPLES%%%%EXAMPLESDIR%%/cork.enc
+%%EXAMPLES%%%%EXAMPLESDIR%%/debian.png
+%%EXAMPLES%%%%EXAMPLESDIR%%/dice.afm
+%%EXAMPLES%%%%EXAMPLESDIR%%/dice.pfb
+%%EXAMPLES%%%%EXAMPLESDIR%%/draw.c
+%%EXAMPLES%%%%EXAMPLESDIR%%/einstein.c
+%%EXAMPLES%%%%EXAMPLESDIR%%/einstein.txt
+%%EXAMPLES%%%%EXAMPLESDIR%%/fontsample.c
+%%EXAMPLES%%%%EXAMPLESDIR%%/hyperlinks.c
+%%EXAMPLES%%%%EXAMPLESDIR%%/hyph_de.dic
+%%EXAMPLES%%%%EXAMPLESDIR%%/hyph_en.dic
+%%EXAMPLES%%%%EXAMPLESDIR%%/hyphenate.c
+%%EXAMPLES%%%%EXAMPLESDIR%%/image.c
+%%EXAMPLES%%%%EXAMPLESDIR%%/indexed-alpha.png
+%%EXAMPLES%%%%EXAMPLESDIR%%/indexed.png
+%%EXAMPLES%%%%EXAMPLESDIR%%/ligatures.c
+%%EXAMPLES%%%%EXAMPLESDIR%%/memory.c
+%%EXAMPLES%%%%EXAMPLESDIR%%/mmk.c
+%%EXAMPLES%%%%EXAMPLESDIR%%/overprint.c
+%%EXAMPLES%%%%EXAMPLESDIR%%/pagehook.c
+%%EXAMPLES%%%%EXAMPLESDIR%%/picture.eps
+%%EXAMPLES%%%%EXAMPLESDIR%%/psclock.c
+%%EXAMPLES%%%%EXAMPLESDIR%%/rgb-alpha.png
+%%EXAMPLES%%%%EXAMPLESDIR%%/rgb.png
+%%EXAMPLES%%%%EXAMPLESDIR%%/shading.c
+%%EXAMPLES%%%%EXAMPLESDIR%%/spotcolor.c
+%%EXAMPLES%%%%EXAMPLESDIR%%/txt2ps.c
+%%EXAMPLES%%@dirrm %%EXAMPLESDIR%%
 @dirrm %%DATADIR%%
 @dirrm include/libps
>Release-Note:
>Audit-Trail:
>Unformatted:



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