Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 18 Nov 2013 18:08:27 +0000 (UTC)
From:      David Naylor <dbn@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r334231 - head/archivers/py-liblzma
Message-ID:  <201311181808.rAII8Rrr014007@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: dbn
Date: Mon Nov 18 18:08:26 2013
New Revision: 334231
URL: http://svnweb.freebsd.org/changeset/ports/334231

Log:
  Add stage support and strip library for achivers/py-liblzma.
  
  Bump PORTREVISION due to the stripped library (package content change).

Modified:
  head/archivers/py-liblzma/Makefile

Modified: head/archivers/py-liblzma/Makefile
==============================================================================
--- head/archivers/py-liblzma/Makefile	Mon Nov 18 18:01:25 2013	(r334230)
+++ head/archivers/py-liblzma/Makefile	Mon Nov 18 18:08:26 2013	(r334231)
@@ -3,7 +3,7 @@
 
 PORTNAME=	liblzma
 PORTVERSION=	0.5.3
-PORTREVISION=	2
+PORTREVISION=	3
 CATEGORIES=	archivers python
 MASTER_SITES=	${MASTER_SITE_CHEESESHOP}
 MASTER_SITE_SUBDIR=	source/p/py${PORTNAME}
@@ -13,7 +13,6 @@ DISTNAME=	${PYDISTUTILS_PKGNAME}-${PORTV
 MAINTAINER=	dbn@FreeBSD.org
 COMMENT=	Python binding for the LZMA compression library
 
-NO_STAGE=	yes
 USES=		pkgconfig
 USE_BZIP2=	yes
 USE_PYTHON=	2.6+
@@ -23,11 +22,14 @@ PYDISTUTILS_PKGNAME=	py${PORTNAME}
 .include <bsd.port.pre.mk>
 
 .if ${OSVERSION} < 800505 || (${OSVERSION} >= 900000 && ${OSVERSION} < 900012)
-LIB_DEPENDS+=	lzma.5:${PORTSDIR}/archivers/xz
+LIB_DEPENDS+=	liblzma.so:${PORTSDIR}/archivers/xz
 .else
 post-patch:
 	@${REINPLACE_CMD} -e 's/pc_cflags = .*/pc_cflags = ""/' \
 		-e 's/pc_libs = .*/pc_libs = "-llzma"/' ${WRKSRC}/setup.py
 .endif
 
+post-install:
+	${STRIP_CMD} ${STAGEDIR}${PYTHON_SITELIBDIR}/lzma.so
+
 .include <bsd.port.post.mk>



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