Skip site navigation (1)Skip section navigation (2)
Date:      Tue,  5 Oct 2004 17:59:06 +0200 (CEST)
From:      Jean-Yves Lefort <jylefort@brutele.be>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   ports/72359: Update port: x11-toolkits/gtk20-apireference (fixes broken links and adds GObject and gdk-pixbuf)
Message-ID:  <20041005155906.2EC3D22E09@jsite.lefort.net>
Resent-Message-ID: <200410051600.i95G0iKF083116@freefall.freebsd.org>

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

>Number:         72359
>Category:       ports
>Synopsis:       Update port: x11-toolkits/gtk20-apireference (fixes broken links and adds GObject and gdk-pixbuf)
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          update
>Submitter-Id:   current-users
>Arrival-Date:   Tue Oct 05 16:00:44 GMT 2004
>Closed-Date:
>Last-Modified:
>Originator:     Jean-Yves Lefort
>Release:        FreeBSD 5.3-BETA6 i386
>Organization:
>Environment:
System: FreeBSD jsite.lefort.net 5.3-BETA6 FreeBSD 5.3-BETA6 #0: Tue Sep 28 00:10:28 CEST 2004 jylefort@jsite.lefort.net:/usr/obj/usr/src/sys/JSITE i386
>Description:
- Fixes links to other modules in .html files
- Adds GObject and gdk-pixbuf docs (they're part of GLib and GTK+)
- Cleans the Makefile
>How-To-Repeat:
>Fix:
diff -ruN /usr/ports/x11-toolkits/gtk20-apireference/Makefile gtk20-apireference/Makefile
--- /usr/ports/x11-toolkits/gtk20-apireference/Makefile	Fri Nov 14 18:54:06 2003
+++ gtk20-apireference/Makefile	Tue Oct  5 17:53:26 2004
@@ -7,10 +7,10 @@
 
 PORTNAME=	gtk20-apireference
 PORTVERSION=	20021211
-PORTREVISION=	1
+PORTREVISION=	2
 CATEGORIES=	x11-toolkits
 MASTER_SITES=	http://developer.gnome.org/doc/API/
-DISTFILES=	glib-2.0-docs.tar.gz gtk-2.0-docs.tar.gz gdk-2.0-docs.tar.gz
+DISTFILES=	${MODULES:C/$/-2.0-docs${EXTRACT_SUFX}/}
 
 MAINTAINER=	edwin@mavetju.org
 COMMENT=	API reference for the Gimp Toolkit v2.0 for X11 GUI
@@ -18,29 +18,36 @@
 NO_BUILD=	yes
 NO_CHECKSUM=	yes		# they're rebuild too often to keep track of
 PLIST=		${WRKDIR}/plist
-PREFIX=		${X11BASE}
+PREFIX=		${X11BASE}	# do not use USE_X_PREFIX, does not depend on X
+USE_REINPLACE=	yes
+REINPLACE_ARGS=	-i ""		# do not save backups
+
+MODULES=	glib gobject gdk gdk-pixbuf gtk
 
 post-extract:
-	@${ECHO_MSG} "===> Creating pkg-plist."
-	@cd ${WRKDIR}; \
-	${RM} -f ${PLIST}; \
-	${RM} -f ${PLIST}.tmp; \
-	for dir in gdk glib gtk; do \
-	    ${MV} $${dir}/$${dir}.devhelp $${dir}/$${dir}20.devhelp; \
-	    ${FIND} $${dir} -type f >> ${PLIST}.tmp ; \
-	    ${ECHO} "@dirrm share/doc/$${dir}20" >> ${PLIST}.tmp; \
-	done; \
-	${SED}	-e 's/^gdk/share\/doc\/gdk20/' \
-		-e 's/^gtk/share\/doc\/gtk20/' \
-		-e 's/^glib/share\/doc\/glib20/' < ${PLIST}.tmp > ${PLIST}; \
-	${RM} ${PLIST}.tmp
+	@${ECHO_MSG} "===>  Creating pkg-plist"
+	@${RM} -f ${PLIST}
+.for dir in ${MODULES}
+	@${MV} ${WRKDIR}/${dir}/${dir}.devhelp ${WRKDIR}/${dir}/${dir}20.devhelp
+	@cd ${WRKDIR}; ${FIND} ${dir} -type f >> ${PLIST}
+	@${ECHO} "@dirrm share/doc/${dir}20" >> ${PLIST}
+	@${REINPLACE_CMD} -e 's|^${dir}|share/doc/${dir}20|' ${PLIST}
+.endfor
+
+post-patch:
+.for dir in ${MODULES}
+	@${FIND} ${WRKDIR}/${dir} -name '*.html' | ${XARGS} ${REINPLACE_CMD} -e \
+		's|href="\.\./glib/|href="\.\./glib20/|g ; \
+		 s|href="\.\./gobject/|href="\.\./gobject20/|g ; \
+		 s|href="\.\./gdk/|href="\.\./gdk20/|g ; \
+		 s|href="\.\./gdk-pixbuf/|href="\.\./gdk-pixbuf20/|g ; \
+		 s|href="\.\./gtk/|href="\.\./gtk20/|g'
+.endfor
 
 do-install:
-	@${MKDIR} ${PREFIX}/share/doc/gdk20
-	@${MKDIR} ${PREFIX}/share/doc/gtk20
-	@${MKDIR} ${PREFIX}/share/doc/glib20
-	${CP} -R ${WRKDIR}/gdk/* ${PREFIX}/share/doc/gdk20
-	${CP} -R ${WRKDIR}/glib/* ${PREFIX}/share/doc/glib20
-	${CP} -R ${WRKDIR}/gtk/* ${PREFIX}/share/doc/gtk20
+.for dir in ${MODULES}
+	${MKDIR} ${PREFIX}/share/doc/${dir}20
+	${CP} -R ${WRKDIR}/${dir}/* ${PREFIX}/share/doc/${dir}20
+.endfor
 
 .include <bsd.port.mk>
diff -ruN /usr/ports/x11-toolkits/gtk20-apireference/pkg-descr gtk20-apireference/pkg-descr
--- /usr/ports/x11-toolkits/gtk20-apireference/pkg-descr	Wed Sep  4 21:41:02 2002
+++ gtk20-apireference/pkg-descr	Tue Oct  5 17:08:22 2004
@@ -6,7 +6,7 @@
 and frames.  It also provides several "container" widgets which can be
 used to control the layout of the user interface elements.
 
-This is the API reference for glib, gtk and gdk v2.0.
+This is the API reference for GLib, GObject, GDK and GTK+ 2.0.
 
 WWW: http://developer.gnome.org/doc/API/
 
>Release-Note:
>Audit-Trail:
>Unformatted:



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