Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 18 Nov 2013 19:53:31 +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: r334257 - in head/archivers/librtfcomp: . files
Message-ID:  <201311181953.rAIJrVwU059102@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: sunpoet
Date: Mon Nov 18 19:53:31 2013
New Revision: 334257
URL: http://svnweb.freebsd.org/changeset/ports/334257

Log:
  - Update to 1.3
  - Add LICENSE
  - Update COMMENT
  - Strip shared library
  - Support STAGEDIR
  - Sort PLIST
  - Update pkg-descr
  - Take maintainership

Deleted:
  head/archivers/librtfcomp/files/
Modified:
  head/archivers/librtfcomp/Makefile
  head/archivers/librtfcomp/distinfo   (contents, props changed)
  head/archivers/librtfcomp/pkg-descr   (contents, props changed)
  head/archivers/librtfcomp/pkg-plist   (contents, props changed)

Modified: head/archivers/librtfcomp/Makefile
==============================================================================
--- head/archivers/librtfcomp/Makefile	Mon Nov 18 19:48:21 2013	(r334256)
+++ head/archivers/librtfcomp/Makefile	Mon Nov 18 19:53:31 2013	(r334257)
@@ -2,24 +2,42 @@
 # $FreeBSD$
 
 PORTNAME=	librtfcomp
-PORTVERSION=	1.1
-CATEGORIES?=	archivers
-MASTER_SITES=	SF/synce/SynCE/0.10.0
+PORTVERSION=	1.3
+CATEGORIES=	archivers
+MASTER_SITES=	SF/synce/SynCE/${PORTNAME}
 
-MAINTAINER=	ports@FreeBSD.org
-COMMENT?=	LZRTF compression library
+MAINTAINER=	sunpoet@FreeBSD.org
+COMMENT?=	Library for handling compressed RTF documents
 
+LICENSE=	LGPL21
 
-USE_AUTOTOOLS=	libtool
 GNU_CONFIGURE=	yes
+USE_AUTOTOOLS=	libtool
 USE_LDCONFIG=	yes
 
-.include <bsd.port.pre.mk>
+SLAVEDIRS=	archivers/py-librtfcomp
 
-.if defined(RTFCOMP_SLAVE) && ${RTFCOMP_SLAVE} == "pythonb"
-CONFIGURE_ARGS=	--enable-python-bindings
+.if defined(SLAVEPORT) && ${SLAVEPORT} == "py"
+CATEGORIES+=	python
+CONFIGURE_ARGS+=--enable-python-bindings
 .else
-CONFIGURE_ARGS=	--disable-python-bindings
+CONFIGURE_ARGS+=--disable-python-bindings
+.endif
+
+post-patch:
+	@${REINPLACE_CMD} -e '/VISIBILITY=/ s| -fvisibility=hidden||' ${WRKSRC}/configure
+	@${REINPLACE_CMD} -e 's|$$(top_builddir)/src/librtfcomp.la|${LOCALBASE}/lib/librtfcomp.la|g' ${WRKSRC}/python/Makefile.in
+
+post-build:
+.if !defined(SLAVEPORT)
+	@${STRIP_CMD} ${WRKSRC}/src/.libs/librtfcomp.so.0
+.endif
+
+post-install:
+.if !defined(SLAVEPORT)
+	${INSTALL_SCRIPT} ${WRKSRC}/tests/fromrtf ${STAGEDIR}${PREFIX}/bin/fromrtf
+	${INSTALL_SCRIPT} ${WRKSRC}/tests/test ${STAGEDIR}${PREFIX}/bin/testrtf
+	${INSTALL_SCRIPT} ${WRKSRC}/tests/tortf ${STAGEDIR}${PREFIX}/bin/tortf
 .endif
 
-.include <bsd.port.post.mk>
+.include <bsd.port.mk>

Modified: head/archivers/librtfcomp/distinfo
==============================================================================
--- head/archivers/librtfcomp/distinfo	Mon Nov 18 19:48:21 2013	(r334256)
+++ head/archivers/librtfcomp/distinfo	Mon Nov 18 19:53:31 2013	(r334257)
@@ -1,2 +1,2 @@
-SHA256 (librtfcomp-1.1.tar.gz) = a4bb19cd7a8713d48cbf20161bbe79ff4e79777491d57cb8a48fdb88567ef7a3
-SIZE (librtfcomp-1.1.tar.gz) = 334800
+SHA256 (librtfcomp-1.3.tar.gz) = 5ade6031956e2bdc3b6b2024bf658459d4d381e33bb5e59264f30eefc8a5f3b4
+SIZE (librtfcomp-1.3.tar.gz) = 328891

Modified: head/archivers/librtfcomp/pkg-descr
==============================================================================
--- head/archivers/librtfcomp/pkg-descr	Mon Nov 18 19:48:21 2013	(r334256)
+++ head/archivers/librtfcomp/pkg-descr	Mon Nov 18 19:53:31 2013	(r334257)
@@ -1,3 +1,3 @@
-LZRTF compression library
+librtfcomp is a library for handling compressed RTF documents.
 
 WWW: http://synce.sourceforge.net/

Modified: head/archivers/librtfcomp/pkg-plist
==============================================================================
--- head/archivers/librtfcomp/pkg-plist	Mon Nov 18 19:48:21 2013	(r334256)
+++ head/archivers/librtfcomp/pkg-plist	Mon Nov 18 19:53:31 2013	(r334257)
@@ -1,8 +1,8 @@
 bin/fromrtf
 bin/testrtf
 bin/tortf
-include/rtfcomp/rtfcomp.h
 include/rtfcomp/errors.h
+include/rtfcomp/rtfcomp.h
 lib/librtfcomp.a
 lib/librtfcomp.la
 lib/librtfcomp.so



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