aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Hutchinson <portmaster@bsdforge.com>2026-02-26 19:02:46 +0000
committerVladimir Druzenko <vvd@FreeBSD.org>2026-02-26 19:11:27 +0000
commit5a83e5118a3a3c319d7236b1f281bba1dde50e64 (patch)
tree471311c04287406a5dcdcc2f6c185419033e66ce
parent70bbcdc61d5678a4a5e9ef232ed6f2d4a3496c82 (diff)
archivers/grzip: Update 0.3.0 => 0.3.1
Changelog: https://codeberg.org/BSDforge/grzip/src/tag/0.3.1/Changelog Port changes: - Move to Codeberg. - Add NLS option. - Use USES+=localbase instead of CFLAGS/LDFLAGS. - Move plist from Makefile to pkg-plist - 11 files. - Split long lines. - Fix soname: libgrzip.so.0 instead of libgrzip.so. PR: 293434 Co-authored-by: Vladimir Druzenko <vvd@FreeBSD.org>
-rw-r--r--archivers/grzip/Makefile43
-rw-r--r--archivers/grzip/distinfo5
-rw-r--r--archivers/grzip/pkg-plist11
3 files changed, 41 insertions, 18 deletions
diff --git a/archivers/grzip/Makefile b/archivers/grzip/Makefile
index 994866a95a6c..bd449521fbc9 100644
--- a/archivers/grzip/Makefile
+++ b/archivers/grzip/Makefile
@@ -1,9 +1,7 @@
PORTNAME= grzip
-PORTVERSION= 0.3.0
-PORTREVISION= 3
+DISTVERSION= 0.3.1
CATEGORIES= archivers
-MASTER_SITES= ftp://ftp.ac-grenoble.fr/ge/compression/ \
- https://BSDforge.com/projects/source/archivers/grzip/
+MASTER_SITES= https://codeberg.org/BSDforge/${PORTNAME}/archive/${DISTVERSION}${EXTRACT_SUFX}?dummy=/
MAINTAINER= portmaster@BSDforge.com
COMMENT= Efficient file compressor
@@ -11,28 +9,41 @@ WWW= https://BSDforge.com/projects/archivers/grzip
LICENSE= LGPL21
-USES= tar:bzip2 gettext
+USES= gettext-runtime localbase:ldflags
USE_LDCONFIG= yes
-CFLAGS+= -I${LOCALBASE}/include -fPIC
-LDFLAGS+= -L${LOCALBASE}/lib -lintl
ALL_TARGET= ${PORTNAME}
-WRAPPERS= grztar grzdiff grzgrep grzmore
-PLIST_FILES= bin/${PORTNAME} bin/grunzip bin/grzcat ${WRAPPERS:S|^|bin/|} \
- lib/lib${PORTNAME}.so lib/lib${PORTNAME}.so.0 include/${PORTNAME}.h \
- share/locale/fr/LC_MESSAGES/${PORTNAME}.mo
+CFLAGS+= -fPIC
+LDFLAGS+= -lintl
+WRKSRC= ${WRKDIR}/${PORTNAME}
+
+OPTIONS_DEFINE= NLS
+OPTIONS_SUB= yes
+
+NLS_USES= gettext-tools
+NLS_CONFIGURE_ENABLE= nls
post-patch:
- @${REINPLACE_CMD} -e 's|DESTDIR|PREFIX|g;/^CC.*=/d;/^OPTFLAGS/s|-O2||;/^CFLAGS/s|=|+=|'\
- -e '/^PREFIX=/d;/^LDFLAGS/s|=|+=|' ${WRKSRC}/Makefile ${WRKSRC}/po/Makefile
+ @${REINPLACE_CMD} ' \
+ s|DESTDIR|PREFIX|g; \
+ /^CC.*=/d;/^OPTFLAGS/s|-O2||; \
+ /^CFLAGS/s|=|+=|; \
+ /^PREFIX=/d;/^LDFLAGS/s|=|+=|; \
+ s|-Wl,-soname,lib${PORTNAME}.so|-Wl,-soname,lib${PORTNAME}.so.0|' \
+ ${WRKSRC}/Makefile \
+ ${WRKSRC}/po/Makefile
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${STAGEDIR}${PREFIX}/bin
${LN} -sf ${PORTNAME} ${STAGEDIR}${PREFIX}/bin/grunzip
${LN} -sf ${PORTNAME} ${STAGEDIR}${PREFIX}/bin/grzcat
- ${INSTALL_SCRIPT} ${WRAPPERS:S|^|${WRKSRC}/scripts/|} ${STAGEDIR}${PREFIX}/bin
- ${INSTALL_PROGRAM} ${WRKSRC}/lib${PORTNAME}.so ${STAGEDIR}${PREFIX}/lib
- ${LN} -sf lib${PORTNAME}.so ${STAGEDIR}${PREFIX}/lib/lib${PORTNAME}.so.0
+ ${INSTALL_SCRIPT} ${grztar grzdiff grzgrep grzmore:L:S|^|${WRKSRC}/scripts/|} \
+ ${STAGEDIR}${PREFIX}/bin
+ ${INSTALL_PROGRAM} ${WRKSRC}/lib${PORTNAME}.so \
+ ${STAGEDIR}${PREFIX}/lib/lib${PORTNAME}.so.0
+ ${LN} -sf lib${PORTNAME}.so.0 ${STAGEDIR}${PREFIX}/lib/lib${PORTNAME}.so
${INSTALL_DATA} ${WRKSRC}/${PORTNAME}.h ${STAGEDIR}${PREFIX}/include
+
+do-install-NLS-on:
(cd ${WRKSRC}/po; ${SETENV} ${MAKE_ENV} ${MAKE} PREFIX="${STAGEDIR}${PREFIX}" install)
.include <bsd.port.mk>
diff --git a/archivers/grzip/distinfo b/archivers/grzip/distinfo
index b109be0cc056..5006ef717e37 100644
--- a/archivers/grzip/distinfo
+++ b/archivers/grzip/distinfo
@@ -1,2 +1,3 @@
-SHA256 (grzip-0.3.0.tar.bz2) = c88cefe6592cce6156d8bd2666c1e2f37aedc93e6a4f1d75e878c4465005decb
-SIZE (grzip-0.3.0.tar.bz2) = 44972
+TIMESTAMP = 1772060953
+SHA256 (grzip-0.3.1.tar.gz) = 0c51683dd5ae2cd0b21db735a815afd4d9c88b731716bb2e43fb048986ae14cd
+SIZE (grzip-0.3.1.tar.gz) = 59199
diff --git a/archivers/grzip/pkg-plist b/archivers/grzip/pkg-plist
new file mode 100644
index 000000000000..21ff96225064
--- /dev/null
+++ b/archivers/grzip/pkg-plist
@@ -0,0 +1,11 @@
+bin/grunzip
+bin/grzcat
+bin/grzdiff
+bin/grzgrep
+bin/grzip
+bin/grzmore
+bin/grztar
+include/grzip.h
+lib/libgrzip.so
+lib/libgrzip.so.0
+%%NLS%%share/locale/fr/LC_MESSAGES/grzip.mo