Bug 77404 - [maintainer] math/gap: update to 4.4.4.20050131
Summary: [maintainer] math/gap: update to 4.4.4.20050131
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: freebsd-ports-bugs (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-02-11 23:50 UTC by Johan van Selst
Modified: 2005-02-15 08:53 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Johan van Selst 2005-02-11 23:50:26 UTC
	

	GAP occasionally releases library (packages) updates, without
	releasing a new gap version. So the packages version (date)
	is now included in $PORTVERSION.

	Note: pkg-plist is again very large. Previous list was unsorted,
	so I decided to sort it now, making the diff even longer...
	But it will ease my work on the next occassion (and shorten diff).

	P.S. Entirely for my own reference, pkg-plist is now sorted with:
		find -s . -type f; find -s . -depth -type d

Fix: 

See http://www.stack.nl/~johans/gap.patch (560Kb)
Comment 1 Volker Stolz freebsd_committer freebsd_triage 2005-02-13 16:31:48 UTC
Since gap seems to be completely self-contained inside its directory, you  
might want to consider generating the plist dynamically if you expect the  
same large diffs on future updates. If somebody complains about a dynamic  
plist, just send them to me :)-- I'm by no means a friend of that feature,  
but here it looks completely appropriate.

Volker
Comment 2 Johan van Selst 2005-02-13 18:38:01 UTC
Volker Stolz wrote:
> Since gap seems to be completely self-contained inside its directory, you  
> might want to consider generating the plist dynamically if you expect the  
> same large diffs on future updates.

I do expect more large diffs. Hadn't thought about dynamic plists
before, but it sure makes maintaining this port easier.

Here is a patch for gap to live without a static pkg-plist (please
remove the file if this patch is acceptable).

P.S. This patch is inspired by devel/cppunit.


diff -u gap/Makefile gap/Makefile
--- gap/Makefile	Sun Feb 13 04:01:02 2005
+++ gap/Makefile	Sun Feb 13 18:28:18 2005
@@ -6,11 +6,11 @@
 #
 
 PORTNAME=	gap
-PORTVERSION=	4.4.4
+PORTVERSION=	4.4.4.20050131
 CATEGORIES=	math
 MASTER_SITES=	ftp://ftp.gap-system.org/pub/gap/gap4/tar.bz2/:new \
 		ftp://ftp.gap-system.org/pub/gap/gap4/old/:old
-DISTFILES=	packages-2004_12_07-12_33_UTC.tar.bz2:old \
+DISTFILES=	packages-2005_01_31-19_34_UTC.tar.bz2:new \
 		gap4r4p4.tar.bz2:new \
 		xtom1r1.tar.bz2:new
 DIST_SUBDIR=	gap
@@ -23,7 +23,7 @@
 GAP_VERSION=	gap4r4
 GAP_WRKSRC=	${WRKSRC}/${GAP_VERSION}
 GAP_LIBDIR=	${PREFIX}/lib/${GAP_VERSION}
-PLIST_SUB=	GAP_LIBDIR=lib/${GAP_VERSION}
+PLIST_FILES=	bin/gap
 
 do-extract:
 	(${MKDIR} ${WRKSRC}; \
@@ -31,7 +31,7 @@
 	${TAR} xyf ${DISTDIR}/${DIST_SUBDIR}/gap4r4p4.tar.bz2; \
 	${TAR} xyf ${DISTDIR}/${DIST_SUBDIR}/xtom1r1.tar.bz2 ; \
 	cd ${GAP_WRKSRC}/pkg; \
-	${TAR} xyf ${DISTDIR}/${DIST_SUBDIR}/packages-2004_12_07-12_33_UTC.tar.bz2 )
+	${TAR} xyf ${DISTDIR}/${DIST_SUBDIR}/packages-2005_01_31-19_34_UTC.tar.bz2 )
 
 do-configure:
 	(cd ${GAP_WRKSRC}; ./configure)
@@ -45,8 +45,15 @@
 	@${MKDIR} ${GAP_LIBDIR} ${GAP_LIBDIR}/bin
 	@${INSTALL_PROGRAM} ${GAP_WRKSRC}/bin/*/gap ${GAP_LIBDIR}/bin
 	@${INSTALL_SCRIPT} ${GAP_WRKSRC}/bin/*/gac ${GAP_LIBDIR}/bin
+	@${INSTALL_DATA} ${GAP_WRKSRC}/sysinfo.gap ${GAP_LIBDIR}
 .for subdir in doc etc grp lib pkg prim small trans tst
 	@${CP} -R ${GAP_WRKSRC}/${subdir} ${GAP_LIBDIR}/
 .endfor
+
+post-install:
+	@${FIND} ${GAP_LIBDIR} ! -type d | \
+		${SED} 's,${PREFIX}/,,' >> ${TMPPLIST}
+	@${FIND} ${GAP_LIBDIR} -type d -depth | \
+		${SED} 's,${PREFIX}/,@dirrm ,' >> ${TMPPLIST}
 
 .include <bsd.port.post.mk>
diff -u gap/distinfo gap/distinfo
--- gap/distinfo	Wed Jan 12 06:45:35 2005
+++ gap/distinfo	Fri Feb 11 19:59:00 2005
@@ -2,5 +2,5 @@
 SIZE (gap/gap4r4p4.tar.bz2) = 41036793
 MD5 (gap/xtom1r1.tar.bz2) = 6652a904930696d7a9f9cfef2828d224
 SIZE (gap/xtom1r1.tar.bz2) = 9443654
-MD5 (gap/packages-2004_12_07-12_33_UTC.tar.bz2) = f43f71bdc680358abbd1a89c72783794
-SIZE (gap/packages-2004_12_07-12_33_UTC.tar.bz2) = 24841081
+MD5 (gap/packages-2005_01_31-19_34_UTC.tar.bz2) = 885ac7e2a882abf688acb48143602038
+SIZE (gap/packages-2005_01_31-19_34_UTC.tar.bz2) = 27985668
Comment 3 Volker Stolz freebsd_committer freebsd_triage 2005-02-15 08:53:03 UTC
State Changed
From-To: open->closed

Committed ,thanks!