ports/169917: [patch] math/units update to 2.00
Klaus Aehlig
aehlig at linta.de
Mon Jul 16 20:40:15 UTC 2012
>Number: 169917
>Category: ports
>Synopsis: [patch] math/units update to 2.00
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: update
>Submitter-Id: current-users
>Arrival-Date: Mon Jul 16 20:40:14 UTC 2012
>Closed-Date:
>Last-Modified:
>Originator: Klaus Aehlig
>Release: FreeBSD 8.3-STABLE amd64
>Organization:
>Environment:
System: FreeBSD curry.linta.de 8.3-STABLE FreeBSD 8.3-STABLE #21: Wed Jun 20 10:33:50 CEST 2012 root at curry.linta.de:/usr/obj/usr/src/sys/CURRY amd64
>Description:
Update to 2.00
while there
- fix WWW entry in pkg-descr
- add license information
>How-To-Repeat:
>Fix:
apply the following patch
note:
the file pkg-plist is newly added.
--- units.diff begins here ---
diff -ruN units.orig/Makefile units/Makefile
--- units.orig/Makefile 2012-07-16 22:16:26.000000000 +0200
+++ units/Makefile 2012-07-16 22:16:42.000000000 +0200
@@ -6,7 +6,7 @@
#
PORTNAME= units
-PORTVERSION= 1.88
+PORTVERSION= 2.00
CATEGORIES= math
MASTER_SITES= ${MASTER_SITE_GNU}
MASTER_SITE_SUBDIR= ${PORTNAME}
@@ -14,12 +14,18 @@
MAINTAINER= jharris at widomaker.com
COMMENT= Unit conversion and calculation
+LICENSE= GPLv3
+LICENSE_FILE= ${WRKSRC}/COPYING
+
GNU_CONFIGURE= yes
CONFIGURE_ARGS= --program-prefix=g
INFO= units
MAN1= gunits.1
-PLIST_FILES= bin/gunits share/units.dat
+post-patch:
+ @${REINPLACE_CMD} -e \
+ 's|$$(INSTALL_PROGRAM) units_cur|${INSTALL_SCRIPT} units_cur|' \
+ ${WRKSRC}/Makefile.in
.include <bsd.port.mk>
diff -ruN units.orig/distinfo units/distinfo
--- units.orig/distinfo 2012-07-16 22:16:26.000000000 +0200
+++ units/distinfo 2012-07-16 22:16:42.000000000 +0200
@@ -1,2 +1,2 @@
-SHA256 (units-1.88.tar.gz) = a805707f8f2802c109aef3f32b431ecd9af1fc3de0c5289223e862c673afec0c
-SIZE (units-1.88.tar.gz) = 261519
+SHA256 (units-2.00.tar.gz) = 573c831e428bf47419c5c540dcd4c6669f14154181d0e8812d635ee5bcff7f60
+SIZE (units-2.00.tar.gz) = 653473
diff -ruN units.orig/pkg-descr units/pkg-descr
--- units.orig/pkg-descr 2012-07-16 22:16:26.000000000 +0200
+++ units/pkg-descr 2012-07-16 22:16:42.000000000 +0200
@@ -8,7 +8,7 @@
The units are defined externally in an extensive, well annotated data file
that defines over 2000 units. You can also provide your own data file.
-WWW: http://www.gnu.org/directory/units.html
+WWW: http://www.gnu.org/software/units/
Note that this port will install the utility with a 'g' prefix,
e.g. gunits, but the texinfo documentation will refer to it without
diff -ruN units.orig/pkg-plist units/pkg-plist
--- units.orig/pkg-plist 1970-01-01 01:00:00.000000000 +0100
+++ units/pkg-plist 2012-07-16 22:16:42.000000000 +0200
@@ -0,0 +1,6 @@
+bin/gunits
+bin/gunits_cur
+share/units/currency.units
+share/units/definitions.units
+share/units/locale.map
+ at dirrm share/units
--- units.diff ends here ---
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list