Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 2 Mar 2014 14:41:22 +0000 (UTC)
From:      Sunpoet Po-Chuan Hsieh <sunpoet@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r346767 - head/misc/libmetalink
Message-ID:  <201403021441.s22EfN3T012842@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: sunpoet
Date: Sun Mar  2 14:41:22 2014
New Revision: 346767
URL: http://svnweb.freebsd.org/changeset/ports/346767
QAT: https://qat.redports.org/buildarchive/r346767/

Log:
  - Update to 0.1.2
  - Remove LICENSE_FILE for well-known licenses
  - Convert to new LIB_DEPENDS format
  - Convert to new options framework
  - Add EXPAT, LIBXML2 and TEST options [1]
  - Strip shared library
  - Remove unnecessary post-patch:
  - Support STAGEDIR
  - Take maintainership
  
  Changes:	http://bazaar.launchpad.net/~metalink-dev/libmetalink/trunk/view/head:/NEWS
  PR:		ports/176891 [1], ports/181522
  Submitted by:	Andrew Romanenko <melanhit@gmail.com> [1]
  		sunpoet (myself)

Modified:
  head/misc/libmetalink/Makefile
  head/misc/libmetalink/distinfo
  head/misc/libmetalink/pkg-plist

Modified: head/misc/libmetalink/Makefile
==============================================================================
--- head/misc/libmetalink/Makefile	Sun Mar  2 14:23:12 2014	(r346766)
+++ head/misc/libmetalink/Makefile	Sun Mar  2 14:41:22 2014	(r346767)
@@ -2,54 +2,48 @@
 # $FreeBSD$
 
 PORTNAME=	libmetalink
-PORTVERSION=	0.0.3
-PORTREVISION=	1
+PORTVERSION=	0.1.2
 CATEGORIES=	misc
-MASTER_SITES=	http://launchpad.net/libmetalink/trunk/${PORTVERSION}/+download/
+MASTER_SITES=	https://launchpadlibrarian.net/113836499/ \
+		LOCAL/sunpoet
 
-MAINTAINER=	ports@FreeBSD.org
+MAINTAINER=	sunpoet@FreeBSD.org
 COMMENT=	Metalink library written in C language
 
-LIB_DEPENDS=	expat.6:${PORTSDIR}/textproc/expat2
-
 LICENSE=	MIT
-LICENSE_FILE=	${WRKSRC}/COPYING
 
-USE_BZIP2=	yes
-USE_GCC=	yes
+OPTIONS_DEFINE=	EXAMPLES TEST
+OPTIONS_SINGLE=	XML
+OPTIONS_SINGLE_XML=	EXPAT LIBXML2
+OPTIONS_DEFAULT=EXPAT
+
 GNU_CONFIGURE=	yes
-CONFIGURE_ARGS=	\
-		--with-libexpat-prefix="${LOCALBASE}" \
-		--with-libxml2="no"
+LDFLAGS+=	-L${LOCALBASE}/lib
+USE_BZIP2=	yes
 USE_LDCONFIG=	yes
+USES=		pathfix
+
+PORTEXAMPLES=	LibO_3.5.4_Win_x86_install_multi.msi.meta4 \
+		metalinkcat.c \
+		ubuntu-12.04-server-amd64.metalink
+
+EXPAT_CONFIGURE_WITH=	libexpat
+EXPAT_CPPFLAGS=		-I${LOCALBASE}/include
+EXPAT_LIB_DEPENDS=	libexpat.so:${PORTSDIR}/textproc/expat2
+LIBXML2_CONFIGURE_WITH=	libxml2
+LIBXML2_CPPFLAGS=	-I${LOCALBASE}/include/libxml2
+LIBXML2_USE=		GNOME=libxml2
+TEST_BUILD_DEPENDS=	cunit>=2.1:${PORTSDIR}/devel/cunit
+TEST_CONFIGURE_ENV=	CUNIT_CFLAGS=-I${LOCALBASE}/include CUNIT_LIBS="-L${LOCALBASE}/lib -lcunit -L${LIBDIR} -lncurses"
 
-# Examples to install
-EXAMPLES_FILES=	\
-	doc/sample.c \
-	doc/ubuntu-7_10-server-i386_iso.metalink
-
-.ifndef(NOPORTEXAMPLES)
-PORTEXAMPLES=	*
-.endif
-
-NO_STAGE=	yes
-post-patch:
-# do not automagically install either documents or examples
-	@${REINPLACE_CMD} -E \
-		-e 's|^(install:).*|\1|' \
-		${WRKSRC}/doc/Makefile.in
-# fix pkgconfig install destination
-	@${REINPLACE_CMD} -E \
-		-e 's|^(pkgconfigdir[[:space:]]*=).*$$|\1${PREFIX}/libdata/pkgconfig|' \
-		${WRKSRC}/lib/Makefile.in
+post-build:
+	@${STRIP_CMD} ${WRKSRC}/lib/.libs/libmetalink.so.3
 
 post-install:
-# examples
-.ifndef(NOPORTEXAMPLES)
-	@${MKDIR} ${EXAMPLESDIR}
-.for file in ${EXAMPLES_FILES}
-	@${INSTALL_DATA} ${WRKSRC}/${file} ${EXAMPLESDIR}
-.endfor
-.endif
+	${MKDIR} ${STAGEDIR}${EXAMPLESDIR}/
+	cd ${WRKSRC}/doc/examples/ && ${INSTALL_DATA} ${PORTEXAMPLES} ${STAGEDIR}${EXAMPLESDIR}/
+
+regression-test test: build
+	cd ${WRKSRC}/ && ${SETENV} ${MAKE_ENV} ${MAKE_CMD} check
 
 .include <bsd.port.mk>

Modified: head/misc/libmetalink/distinfo
==============================================================================
--- head/misc/libmetalink/distinfo	Sun Mar  2 14:23:12 2014	(r346766)
+++ head/misc/libmetalink/distinfo	Sun Mar  2 14:41:22 2014	(r346767)
@@ -1,2 +1,2 @@
-SHA256 (libmetalink-0.0.3.tar.bz2) = 0bdc2cc0366b2b7bcf16eff31a5edc4d39b41430856afce04ad9dd9bbcc8c42c
-SIZE (libmetalink-0.0.3.tar.bz2) = 267023
+SHA256 (libmetalink-0.1.2.tar.bz2) = cbed9121bf550ef14a434d6ed3d8806ded7a339db16b698cfa2f39fdc3d48bf6
+SIZE (libmetalink-0.1.2.tar.bz2) = 324431

Modified: head/misc/libmetalink/pkg-plist
==============================================================================
--- head/misc/libmetalink/pkg-plist	Sun Mar  2 14:23:12 2014	(r346766)
+++ head/misc/libmetalink/pkg-plist	Sun Mar  2 14:41:22 2014	(r346767)
@@ -1,9 +1,26 @@
+include/metalink/metalink.h
 include/metalink/metalink_error.h
 include/metalink/metalink_parser.h
 include/metalink/metalink_types.h
+include/metalink/metalinkver.h
 lib/libmetalink.a
 lib/libmetalink.la
 lib/libmetalink.so
-lib/libmetalink.so.1
+lib/libmetalink.so.3
 libdata/pkgconfig/libmetalink.pc
+man/man3/metalink_checksum_t.3.gz
+man/man3/metalink_chunk_checksum_t.3.gz
+man/man3/metalink_delete.3.gz
+man/man3/metalink_file_t.3.gz
+man/man3/metalink_parse_fd.3.gz
+man/man3/metalink_parse_file.3.gz
+man/man3/metalink_parse_final.3.gz
+man/man3/metalink_parse_fp.3.gz
+man/man3/metalink_parse_memory.3.gz
+man/man3/metalink_parse_update.3.gz
+man/man3/metalink_parser_context_delete.3.gz
+man/man3/metalink_parser_context_new.3.gz
+man/man3/metalink_piece_hash_t.3.gz
+man/man3/metalink_resource_t.3.gz
+man/man3/metalink_t.3.gz
 @dirrm include/metalink



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