Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 13 Apr 2017 19:45:49 +0000 (UTC)
From:      Dmitry Marakasov <amdmi3@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r438472 - head/www/twms
Message-ID:  <201704131945.v3DJjnNm004671@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: amdmi3
Date: Thu Apr 13 19:45:48 2017
New Revision: 438472
URL: https://svnweb.freebsd.org/changeset/ports/438472

Log:
  - Switch to github
  - Fix shebang
  - Cosmetic fixes
  - Update WWW

Modified:
  head/www/twms/Makefile
  head/www/twms/distinfo
  head/www/twms/pkg-descr

Modified: head/www/twms/Makefile
==============================================================================
--- head/www/twms/Makefile	Thu Apr 13 19:45:02 2017	(r438471)
+++ head/www/twms/Makefile	Thu Apr 13 19:45:48 2017	(r438472)
@@ -5,7 +5,6 @@ PORTNAME=	twms
 PORTVERSION=	0.02w
 PORTREVISION=	2
 CATEGORIES=	www astro
-MASTER_SITES=	http://mirror.amdmi3.ru/distfiles/
 
 MAINTAINER=	amdmi3@FreeBSD.org
 COMMENT=	Tiny WMS server
@@ -17,7 +16,11 @@ RUN_DEPENDS=	${PYTHON_SITELIBDIR}/pyproj
 		${PYTHON_SITELIBDIR}/web/__init__.py:www/webpy \
 		${PYTHON_PKGNAMEPREFIX}pillow>0:graphics/py-pillow
 
-USES=		python tar:bzip2
+USE_GITHUB=	yes
+GH_ACCOUNT=	Komzpa
+
+USES=		python shebangfix tar:bzip2
+SHEBANG_FILES=	twms.py
 NO_BUILD=	yes
 NO_ARCH=	yes
 
@@ -26,7 +29,7 @@ TWMS_GROUP?=	twms
 TWMS_CACHEDIR?=	/var/cache/twms
 
 SUB_FILES=	pkg-install pkg-deinstall
-SUB_LIST+=	USER=${TWMS_USER} GROUP=${TWMS_GROUP} CACHEDIR=${TWMS_CACHEDIR}
+SUB_LIST=	USER=${TWMS_USER} GROUP=${TWMS_GROUP} CACHEDIR=${TWMS_CACHEDIR}
 
 USE_RC_SUBR=	twms
 
@@ -34,7 +37,6 @@ USERS=		${TWMS_USER}
 GROUPS=		${TWMS_GROUP}
 
 post-patch:
-	@${REINPLACE_CMD} -e '1,1 s|/usr/bin/python|/usr/bin/env python|' ${WRKSRC}/twms.py
 	@${REINPLACE_CMD} -e 's|/etc/twms/twms.conf|${PREFIX}/etc/twms.conf|' ${WRKSRC}/twms/twms.py
 	@${REINPLACE_CMD} -e '/tiles_cache =/ s|".*"|"${TWMS_CACHEDIR}/cache/"|; \
 		/install_path =/ s|".*"|"${DATADIR}/"|; \
@@ -42,10 +44,10 @@ post-patch:
 		s|import fetchers|from twms &|' ${WRKSRC}/twms/twms.conf
 
 do-install:
-	${MKDIR} ${STAGEDIR}${PYTHONPREFIX_SITELIBDIR}/twms
+	@${MKDIR} ${STAGEDIR}${PYTHONPREFIX_SITELIBDIR}/twms
 	${INSTALL_DATA} ${WRKSRC}/twms/*.py ${STAGEDIR}${PYTHONPREFIX_SITELIBDIR}/twms/
 	${INSTALL_SCRIPT} ${WRKSRC}/twms.py ${STAGEDIR}${PREFIX}/bin/twms
-	${MKDIR} ${STAGEDIR}${DATADIR}
+	@${MKDIR} ${STAGEDIR}${DATADIR}
 	${INSTALL_DATA} ${WRKSRC}/*.jpg ${STAGEDIR}${DATADIR}/
 	${INSTALL_DATA} ${WRKSRC}/twms/twms.conf ${STAGEDIR}${PREFIX}/etc/twms.conf.default
 

Modified: head/www/twms/distinfo
==============================================================================
--- head/www/twms/distinfo	Thu Apr 13 19:45:02 2017	(r438471)
+++ head/www/twms/distinfo	Thu Apr 13 19:45:48 2017	(r438472)
@@ -1,2 +1,3 @@
-SHA256 (twms-0.02w.tar.bz2) = 085f0635e0535387e5e343106740be60e7f49ac75483dfc4f461b1d1c4c207c1
-SIZE (twms-0.02w.tar.bz2) = 35010
+TIMESTAMP = 1476144541
+SHA256 (Komzpa-twms-0.02w_GH0.tar.gz) = a93f66a06be76d541747f370cc17e9568060cb4d4d9b9b41d135ce46d60a2c38
+SIZE (Komzpa-twms-0.02w_GH0.tar.gz) = 36022

Modified: head/www/twms/pkg-descr
==============================================================================
--- head/www/twms/pkg-descr	Thu Apr 13 19:45:02 2017	(r438471)
+++ head/www/twms/pkg-descr	Thu Apr 13 19:45:48 2017	(r438472)
@@ -1,4 +1,4 @@
 tWMS is a tiny WMS server written in Python and using tiles as a
 backend storage
 
-WWW: http://code.google.com/p/twms/
+WWW: https://github.com/Komzpa/twms



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