Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 21 Dec 2021 19:41:18 GMT
From:      Po-Chuan Hsieh <sunpoet@FreeBSD.org>
To:        ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org
Subject:   git: a85f523ccf07 - main - archivers/libmspack: Convert REINPLACE_CMD to patch file
Message-ID:  <202112211941.1BLJfIPP022514@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by sunpoet:

URL: https://cgit.FreeBSD.org/ports/commit/?id=a85f523ccf07ab80dcfce1936ddf66bc90872c2c

commit a85f523ccf07ab80dcfce1936ddf66bc90872c2c
Author:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
AuthorDate: 2021-12-21 18:46:11 +0000
Commit:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
CommitDate: 2021-12-21 18:46:11 +0000

    archivers/libmspack: Convert REINPLACE_CMD to patch file
    
    - Use DISTVERSIONSUFFIX instead of DISTNAME
    - Remove PORTREVISION
    - Take maintainership
---
 archivers/libmspack/Makefile                | 14 ++++++--------
 archivers/libmspack/files/patch-Makefile.in | 11 +++++++++++
 archivers/libmspack/pkg-descr               |  5 +++--
 3 files changed, 20 insertions(+), 10 deletions(-)

diff --git a/archivers/libmspack/Makefile b/archivers/libmspack/Makefile
index ab97ed3fa495..308e0bcdb78f 100644
--- a/archivers/libmspack/Makefile
+++ b/archivers/libmspack/Makefile
@@ -2,24 +2,22 @@
 
 PORTNAME=	libmspack
 PORTVERSION=	0.10.1
-PORTREVISION=	0
+DISTVERSIONSUFFIX=	alpha
 CATEGORIES=	archivers
 MASTER_SITES=	http://www.cabextract.org.uk/libmspack/
-DISTNAME=	${PORTNAME}-${PORTVERSION}alpha
 
-MAINTAINER=	ports@FreeBSD.org
+MAINTAINER=	sunpoet@FreeBSD.org
 COMMENT=	Library for Microsoft compression formats
 
 LICENSE=	LGPL21
 LICENSE_FILE=	${WRKSRC}/COPYING.LIB
 
-GNU_CONFIGURE=	yes
-USE_LDCONFIG=	yes
 USES=		cpe libtool pathfix
-CPE_VENDOR=	libmspack_project
+
+GNU_CONFIGURE=	yes
 INSTALL_TARGET=	install-strip
+USE_LDCONFIG=	yes
 
-post-patch:
-	@${REINPLACE_CMD} 's,-Wno-unused-result,,' ${WRKSRC}/Makefile.in
+CPE_VENDOR=	libmspack_project
 
 .include <bsd.port.mk>
diff --git a/archivers/libmspack/files/patch-Makefile.in b/archivers/libmspack/files/patch-Makefile.in
new file mode 100644
index 000000000000..f2e686674f13
--- /dev/null
+++ b/archivers/libmspack/files/patch-Makefile.in
@@ -0,0 +1,11 @@
+--- Makefile.in.orig	2019-03-04 09:39:18 UTC
++++ Makefile.in
+@@ -92,7 +92,7 @@ POST_UNINSTALL = :
+ build_triplet = @build@
+ host_triplet = @host@
+ # add "-DMSPACK_NO_DEFAULT_SYSTEM" to remove default mspack_system
+-@GCC_TRUE@am__append_1 = -Wall -Wextra -Wno-unused-parameter -Wno-unused-result
++@GCC_TRUE@am__append_1 = -Wall -Wextra -Wno-unused-parameter
+ noinst_PROGRAMS = examples/cabd_memory$(EXEEXT) \
+ 	examples/cabrip$(EXEEXT) examples/chmextract$(EXEEXT) \
+ 	examples/msexpand$(EXEEXT) examples/multifh$(EXEEXT) \
diff --git a/archivers/libmspack/pkg-descr b/archivers/libmspack/pkg-descr
index b0d5d4e82db8..6927d99914b9 100644
--- a/archivers/libmspack/pkg-descr
+++ b/archivers/libmspack/pkg-descr
@@ -1,4 +1,5 @@
-The purpose of libmspack is to provide both compression and decompression
-of some loosely related file formats used by Microsoft.
+libmspack is a portable library for some loosely related Microsoft compression
+formats.
 
 WWW: https://www.cabextract.org.uk/libmspack/
+WWW: https://github.com/kyz/libmspack



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