ports/180345: [patch] sysutils/gdisk: update to version 0.8.6 and some more
Boris Samorodov
bsam at FreeBSD.org
Sat Jul 6 13:30:00 UTC 2013
>Number: 180345
>Category: ports
>Synopsis: [patch] sysutils/gdisk: update to version 0.8.6 and some more
>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: Sat Jul 06 13:30:00 UTC 2013
>Closed-Date:
>Last-Modified:
>Originator: Boris Samorodov
>Release: FreeBSD 9-i386
>Organization:
BSDprint
>Environment:
FreeBSD srv.bb.tel.ru 10.0-CURRENT FreeBSD 10.0-CURRENT #3 r252679: Thu Jul 4 10:18:04 SAMT 2013 bsam at srv.bb.tel.ru:/usr/obj/usr/src/sys/BB64X amd64
>Description:
A new version is available.
>How-To-Repeat:
>Fix:
. update to version 0.8.6;
. use one line MASTER_SITES with MASTER_SITE_SUBDIR;
. trim Makefile headers;
. remove ABI versions from LIB_DEPENDS;
. use new LIB_DEPENDS syntax;
. part PKGMESSAGE by space lines;
. empty(OPT) -> ! ${OPT};
. remove check for unsupported 7.x.
Patch attached with submission follows:
Index: Makefile
===================================================================
--- Makefile (revision 322365)
+++ Makefile (working copy)
@@ -1,15 +1,10 @@
-# New ports collection makefile for: gdisk
-# Date created: 12 July 2010
-# Whom: Dmitry N Fomin <fdn at okbire.ru>
-#
+# Created by: Dmitry N Fomin <fdn at okbire.ru>
# $FreeBSD$
-#
PORTNAME= gdisk
-PORTVERSION= 0.8.5
+PORTVERSION= 0.8.6
CATEGORIES= sysutils
-MASTER_SITES= SF
-MASTER_SITE_SUBDIR= gptfdisk/gptfdisk/${PORTVERSION}
+MASTER_SITES= SF/gptfdisk/gptfdisk/${PORTVERSION}
DISTNAME= gptfdisk-${PORTVERSION}
MAINTAINER= fdn at okbire.ru
@@ -18,8 +13,8 @@
LICENSE= GPLv2
LICENSE_FILE= ${WRKSRC}/COPYING
-LIB_DEPENDS= uuid.1:${PORTSDIR}/misc/e2fsprogs-libuuid \
- popt.0:${PORTSDIR}/devel/popt
+LIB_DEPENDS= libuuid.so:${PORTSDIR}/misc/e2fsprogs-libuuid \
+ libpopt.so:${PORTSDIR}/devel/popt
WRKSRC= ${WRKDIR}/gptfdisk-${PORTVERSION}
@@ -31,24 +26,20 @@
CGDISK_DESC= A curses-based interactive program
UTF16_DESC= Support for Unicode partition names
-.include <bsd.port.pre.mk>
-
-.if ${OSVERSION} < 701100
-IGNORE= is unsupported on FreeBSD 7.1-RELEASE or earlier
-.endif
-
MAKEFILE= Makefile.freebsd
PROGRAM_LIST= fixparts gdisk sgdisk
PLIST_FILES= ${PROGRAM_LIST:C,^,sbin/,}
+.include <bsd.port.pre.mk>
+
.if ${PORT_OPTIONS:MCGDISK}
PROGRAM_LIST+= cgdisk
-LIB_DEPENDS+= ncurses.5:${PORTSDIR}/devel/ncurses
+LIB_DEPENDS+= libncurses.so:${PORTSDIR}/devel/ncurses
.endif
.if ${PORT_OPTIONS:MUTF16}
-LIB_DEPENDS+= icuuc.48:${PORTSDIR}/devel/icu
+LIB_DEPENDS+= libicuuc.so:${PORTSDIR}/devel/icu
.endif
MAN8=
@@ -60,11 +51,11 @@
${REINPLACE_CMD} -e 's|/usr/include/||' ${WRKSRC}/guid.h
${REINPLACE_CMD} -e 's|/usr/local|${LOCALBASE}|' ${WRKSRC}/${MAKEFILE}
-.if empty(PORT_OPTIONS:MCGDISK)
+.if ! ${PORT_OPTIONS:MCGDISK}
${REINPLACE_CMD} -e '/^all:/s| cgdisk||' ${WRKSRC}/${MAKEFILE}
.endif
-.if empty(PORT_OPTIONS:MUTF16)
+.if ! ${PORT_OPTIONS:MUTF16}
${REINPLACE_CMD} -e 's| -D USE_UTF16||' \
-e 's| -licuio||' ${WRKSRC}/${MAKEFILE}
.endif
@@ -76,6 +67,8 @@
.endfor
post-install:
+ @${ECHO_MSG}
@${CAT} ${PKGMESSAGE}
+ @${ECHO_MSG}
.include <bsd.port.post.mk>
Index: distinfo
===================================================================
--- distinfo (revision 322365)
+++ distinfo (working copy)
@@ -1,2 +1,2 @@
-SHA256 (gptfdisk-0.8.5.tar.gz) = 15cc691f28212c157e05315662ed6b76ffdcc8de6fc118fa21c81ef5aae84af9
-SIZE (gptfdisk-0.8.5.tar.gz) = 183841
+SHA256 (gptfdisk-0.8.6.tar.gz) = 4579cd54842459699970e24720dda7fb0aa217027818623089c321bc62a647b2
+SIZE (gptfdisk-0.8.6.tar.gz) = 184686
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list