pkgsrc-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

CVS commit: pkgsrc/www/http-parser



Module Name:    pkgsrc
Committed By:   jperkin
Date:           Thu Aug 25 18:30:33 UTC 2016

Modified Files:
        pkgsrc/www/http-parser: Makefile PLIST distinfo
Removed Files:
        pkgsrc/www/http-parser/patches: patch-Makefile

Log Message:
Use libtool for the build and install.  Fixes various issues with the
package which meant it only worked on NetBSD.  Bump PKGREVISION.


To generate a diff of this commit:
cvs rdiff -u -r1.3 -r1.4 pkgsrc/www/http-parser/Makefile
cvs rdiff -u -r1.2 -r1.3 pkgsrc/www/http-parser/PLIST \
    pkgsrc/www/http-parser/distinfo
cvs rdiff -u -r1.1 -r0 pkgsrc/www/http-parser/patches/patch-Makefile

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: pkgsrc/www/http-parser/Makefile
diff -u pkgsrc/www/http-parser/Makefile:1.3 pkgsrc/www/http-parser/Makefile:1.4
--- pkgsrc/www/http-parser/Makefile:1.3 Thu Jun  9 06:23:41 2016
+++ pkgsrc/www/http-parser/Makefile     Thu Aug 25 18:30:33 2016
@@ -1,6 +1,7 @@
-# $NetBSD: Makefile,v 1.3 2016/06/09 06:23:41 wiz Exp $
+# $NetBSD: Makefile,v 1.4 2016/08/25 18:30:33 jperkin Exp $
 
 DISTNAME=      http-parser-2.7.0
+PKGREVISION=   1
 CATEGORIES=    www
 MASTER_SITES=  ${MASTER_SITE_GITHUB:=nodejs/}
 GITHUB_TAG=    v${PKGVERSION_NOREV}
@@ -11,8 +12,23 @@ COMMENT=     Parser for HTTP messages writte
 LICENSE=       mit
 
 USE_LANGUAGES=         c
+USE_LIBTOOL=           yes
 USE_TOOLS+=            gmake
-BUILD_TARGET=          library
+
+INSTALLATION_DIRS=     include lib
+
 BUILDLINK_TRANSFORM+=  rm:-Werror
 
+do-build:
+       cd ${WRKSRC} && ${LIBTOOL} --mode=compile --tag=CC ${CC} ${CFLAGS} \
+           -c http_parser.c
+       cd ${WRKSRC} && ${LIBTOOL} --mode=link --tag=CC ${CC} ${LDFLAGS} \
+           ${LIBS} -o libhttp_parser.la http_parser.lo \
+           -version-info 2:7:0 -rpath ${PREFIX}/lib
+
+do-install:
+       cd ${WRKSRC} && ${LIBTOOL} --mode=install ${INSTALL_LIB} \
+           -c libhttp_parser.la ${DESTDIR}${PREFIX}/lib/libhttp_parser.la
+       ${INSTALL_DATA} ${WRKSRC}/http_parser.h ${DESTDIR}${PREFIX}/include
+
 .include "../../mk/bsd.pkg.mk"

Index: pkgsrc/www/http-parser/PLIST
diff -u pkgsrc/www/http-parser/PLIST:1.2 pkgsrc/www/http-parser/PLIST:1.3
--- pkgsrc/www/http-parser/PLIST:1.2    Sun May 29 14:17:48 2016
+++ pkgsrc/www/http-parser/PLIST        Thu Aug 25 18:30:33 2016
@@ -1,4 +1,3 @@
-@comment $NetBSD: PLIST,v 1.2 2016/05/29 14:17:48 wiz Exp $
+@comment $NetBSD: PLIST,v 1.3 2016/08/25 18:30:33 jperkin Exp $
 include/http_parser.h
-lib/libhttp_parser.so
-lib/libhttp_parser.so.2.7.0
+lib/libhttp_parser.la
Index: pkgsrc/www/http-parser/distinfo
diff -u pkgsrc/www/http-parser/distinfo:1.2 pkgsrc/www/http-parser/distinfo:1.3
--- pkgsrc/www/http-parser/distinfo:1.2 Sun May 29 14:17:48 2016
+++ pkgsrc/www/http-parser/distinfo     Thu Aug 25 18:30:33 2016
@@ -1,7 +1,6 @@
-$NetBSD: distinfo,v 1.2 2016/05/29 14:17:48 wiz Exp $
+$NetBSD: distinfo,v 1.3 2016/08/25 18:30:33 jperkin Exp $
 
 SHA1 (http-parser-2.7.0.tar.gz) = f24bd35cf6d663e2b9f916708d82a96f562bc78b
 RMD160 (http-parser-2.7.0.tar.gz) = 910c4bb7cf4c5463ad2a54eb82b78d1bc20de877
 SHA512 (http-parser-2.7.0.tar.gz) = 1fe13b5366e9d161dbce2f6ad340890713413e4c5865d2567cb5ccf5601a52bc03682ecc43bc4e2c5ee9c4f152993a658d87fd43373070da67530c58ad577ee1
 Size (http-parser-2.7.0.tar.gz) = 48523 bytes
-SHA1 (patch-Makefile) = d2563f8f1e7d85e3b7d7e1dc53ae20089a0e8cab



Home | Main Index | Thread Index | Old Index