Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 14 Oct 2013 12:04:42 +0000 (UTC)
From:      William Grzybowski <wg@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r330308 - head/devel/dulwich
Message-ID:  <201310141204.r9EC4grE071540@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: wg
Date: Mon Oct 14 12:04:42 2013
New Revision: 330308
URL: http://svnweb.freebsd.org/changeset/ports/330308

Log:
  devel/dulwich: allow staging
  
  - Allow staging
  - Add EXAMPLES option
  - Use python auto plist
  
  PR:		ports/182746
  Submitted by:	Marco Bröder <marco.broeder gmx.eu> (maintainer)

Deleted:
  head/devel/dulwich/pkg-plist
Modified:
  head/devel/dulwich/Makefile
  head/devel/dulwich/distinfo

Modified: head/devel/dulwich/Makefile
==============================================================================
--- head/devel/dulwich/Makefile	Mon Oct 14 12:00:22 2013	(r330307)
+++ head/devel/dulwich/Makefile	Mon Oct 14 12:04:42 2013	(r330308)
@@ -2,7 +2,7 @@
 # $FreeBSD$
 
 PORTNAME=	dulwich
-PORTVERSION=	0.9.0
+PORTVERSION=	0.9.1
 CATEGORIES=	devel python
 MASTER_SITES=	http://www.samba.org/~jelmer/${PORTNAME}/
 PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
@@ -13,31 +13,37 @@ COMMENT=	Pure-Python implementation of t
 LICENSE=	GPLv2 GPLv3
 LICENSE_COMB=	dual
 
+PORTDOCS=	NEWS README introduction.txt object-store.txt protocol.txt \
+		remote.txt repo.txt tag.txt
+PORTEXAMPLES=	clone.py diff.py
 
-PORTDOCS=	AUTHORS HACKING NEWS README introduction.txt \
-		object-store.txt protocol.txt remote.txt repo.txt tag.txt
-
-USE_PYTHON=	-2.7
+USE_PYTHON=	2
 USE_PYDISTUTILS=yes
+PYDISTUTILS_AUTOPLIST=	yes
 
-OPTIONSFILE=	${PORT_DBDIR}/${PORTNAME}/options
-OPTIONS_DEFINE=	DOCS
-OPTIONS_DEFAULT=DOCS
+OPTIONS_DEFINE=	DOCS EXAMPLES
+OPTIONS_DEFAULT=DOCS EXAMPLES
 
-NO_STAGE=	yes
 .include <bsd.port.options.mk>
 
 post-patch:
 	${REINPLACE_CMD} -e 's|PYTHON = python|PYTHON = ${PYTHON_CMD}|g' \
 		${WRKSRC}/Makefile
 	${REINPLACE_CMD} -e 's|/usr/bin/python|${PYTHON_CMD}|g' \
-		${WRKSRC}/setup.py
+		${WRKSRC}/setup.py ${WRKSRC}/examples/*.py
 
 post-install:
 .if ${PORT_OPTIONS:MDOCS}
-	${CP} ${WRKSRC}/docs/*.txt ${WRKSRC}/docs/tutorial/*.txt ${WRKSRC}
-	@${MKDIR} ${DOCSDIR}
-	cd ${WRKSRC} && ${INSTALL_DATA} ${PORTDOCS} ${DOCSDIR}
+	${CP} ${WRKSRC}/docs/*.txt ${WRKSRC}/docs/tutorial/*.txt ${WRKSRC}/
+	@${MKDIR} ${STAGEDIR}${DOCSDIR}
+	(cd ${WRKSRC} && ${INSTALL_DATA} ${PORTDOCS} ${STAGEDIR}${DOCSDIR}/)
+.endif
+
+.if ${PORT_OPTIONS:MEXAMPLES}
+	${CP} ${WRKSRC}/examples/*.py ${WRKSRC}/
+	@${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
+	(cd ${WRKSRC} && ${INSTALL_SCRIPT} ${PORTEXAMPLES} \
+		${STAGEDIR}${EXAMPLESDIR}/)
 .endif
 
 .include <bsd.port.mk>

Modified: head/devel/dulwich/distinfo
==============================================================================
--- head/devel/dulwich/distinfo	Mon Oct 14 12:00:22 2013	(r330307)
+++ head/devel/dulwich/distinfo	Mon Oct 14 12:04:42 2013	(r330308)
@@ -1,2 +1,2 @@
-SHA256 (dulwich-0.9.0.tar.gz) = bc6df3634216d01064d86c0bad8b39f26802dbfe37d34f1b0edf8a60c4ca8f25
-SIZE (dulwich-0.9.0.tar.gz) = 221697
+SHA256 (dulwich-0.9.1.tar.gz) = 3396b821e6119b33ab0d6554f193d3d51e1debf5bcd7206ac155b808f426a1e8
+SIZE (dulwich-0.9.1.tar.gz) = 223606



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