svn commit: r358337 - head/math/libqalculate
Jason E. Hale
jhale at FreeBSD.org
Thu Jun 19 02:04:02 UTC 2014
Author: jhale
Date: Thu Jun 19 02:04:01 2014
New Revision: 358337
URL: http://svnweb.freebsd.org/changeset/ports/358337
QAT: https://qat.redports.org/buildarchive/r358337/
Log:
- Use new LIB_DEPENDS syntax
- Convert USE_AUTOTOOLS=libtool -> USES=libtool
- Use options helpers
- Strip binaries
- Take maintainership
Modified:
head/math/libqalculate/Makefile
head/math/libqalculate/pkg-plist
Modified: head/math/libqalculate/Makefile
==============================================================================
--- head/math/libqalculate/Makefile Thu Jun 19 01:31:46 2014 (r358336)
+++ head/math/libqalculate/Makefile Thu Jun 19 02:04:01 2014 (r358337)
@@ -7,36 +7,34 @@ PORTREVISION= 3
CATEGORIES= math
MASTER_SITES= SF/qalculate/${PORTNAME}/${PORTNAME}-${PORTVERSION}
-MAINTAINER= ports at FreeBSD.org
+MAINTAINER= jhale at FreeBSD.org
COMMENT= Multi-purpose desktop calculator (backend library)
-LIB_DEPENDS= cln:${PORTSDIR}/math/cln
+LIB_DEPENDS= libcln.so:${PORTSDIR}/math/cln
-USES= pkgconfig pathfix gmake
+USES= pkgconfig pathfix gmake libtool
USE_GNOME= glib20 intlhack libxml2
-USE_AUTOTOOLS= libtool
USE_LDCONFIG= yes
+GNU_CONFIGURE= yes
OPTIONS_DEFINE= NLS
+OPTIONS_SUB= yes
-.include <bsd.port.options.mk>
+NLS_USES= gettext
+NLS_CONFIGURE_ENV= GMSGFMT="${LOCALBASE}/bin/msgfmt"
-.if ${PORT_OPTIONS:MNLS}
-USES+= gettext
-PLIST_SUB+= NLS=""
-.else
-CONFIGURE_ARGS+= --disable-nls
-PLIST_SUB+= NLS="@comment "
-.endif
+.include <bsd.port.options.mk>
post-patch:
-.if ${PORT_OPTIONS:MNLS}
- @${REINPLACE_CMD} -e 's/^GMSGFMT = @GMSGFMT@/GMSGFMT = msgfmt/' ${WRKSRC}/po/Makefile.in.in
-.else
+.if !${PORT_OPTIONS:MNLS}
@${REINPLACE_CMD} -e '/^SUBDIRS =/s|po ||g' ${WRKSRC}/Makefile.in
.endif
@${REINPLACE_CMD} -e '/^SUBDIRS =/s|docs||g' ${WRKSRC}/Makefile.in
- @${REINPLACE_CMD} -e 's/-pthread/${PTHREAD_LIBS}/g' ${WRKSRC}/configure
- @${REINPLACE_CMD} -e 's/-lpthread/${PTHREAD_LIBS}/g' ${WRKSRC}/libqalculate.pc.in
+ @${REINPLACE_CMD} -e 's/-lpthread/${PTHREAD_LIBS}/g' \
+ ${WRKSRC}/${CONFIGURE_SCRIPT} \
+ ${WRKSRC}/libqalculate.pc.in
+
+post-install:
+ ${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/libqalculate.so*
.include <bsd.port.mk>
Modified: head/math/libqalculate/pkg-plist
==============================================================================
--- head/math/libqalculate/pkg-plist Thu Jun 19 01:31:46 2014 (r358336)
+++ head/math/libqalculate/pkg-plist Thu Jun 19 02:04:01 2014 (r358337)
@@ -13,9 +13,9 @@ include/libqalculate/includes.h
include/libqalculate/qalculate.h
include/libqalculate/util.h
lib/libqalculate.a
-lib/libqalculate.la
lib/libqalculate.so
lib/libqalculate.so.5
+lib/libqalculate.so.5.0.0
libdata/pkgconfig/libqalculate.pc
%%NLS%%share/locale/fr/LC_MESSAGES/libqalculate.mo
%%NLS%%share/locale/nl/LC_MESSAGES/libqalculate.mo
More information about the svn-ports-all
mailing list