Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 19 Dec 2013 12:49:10 +0000 (UTC)
From:      Danilo Egea Gondolfo <danilo@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r336894 - head/net-im/cjc
Message-ID:  <201312191249.rBJCnAFX016970@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: danilo
Date: Thu Dec 19 12:49:09 2013
New Revision: 336894
URL: http://svnweb.freebsd.org/changeset/ports/336894

Log:
  - Support USE_GITHUB
  - Improve COMMENT
  - Add stage support
  
  PR:		ports/184818
  Submitted by:	KATO Tsuguru <tkato432@yahoo.com>

Modified:
  head/net-im/cjc/Makefile

Modified: head/net-im/cjc/Makefile
==============================================================================
--- head/net-im/cjc/Makefile	Thu Dec 19 12:41:25 2013	(r336893)
+++ head/net-im/cjc/Makefile	Thu Dec 19 12:49:09 2013	(r336894)
@@ -4,38 +4,37 @@
 PORTNAME=	cjc
 PORTVERSION=	1.2.1
 CATEGORIES=	net-im python
-MASTER_SITES=	http://cloud.github.com/downloads/Jajcus/cjc/
+MASTER_SITES=	GHC
 
 MAINTAINER=	ports@FreeBSD.org
-COMMENT=	The Console Jabber Client
+COMMENT=	Console Jabber Client
 
 LICENSE=	GPLv2
 
 RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}pyxmpp>=1.1.0:${PORTSDIR}/net-im/py-pyxmpp
 
+OPTIONS_DEFINE=	DOCS
+
+USE_GITHUB=	yes
+GH_ACCOUNT=	Jajcus
+
+WRKSRC=		${WRKDIR}/${DISTNAME}
+
+USES=		shebangfix
+SHEBANG_FILES=	cjc.in cjc.py cjc/main.py
 USE_PYTHON=	2
 
-NO_STAGE=	yes
 post-patch:
-	@${GREP} -lR "/usr/bin/python" ${WRKSRC} | ${XARGS} \
-		${REINPLACE_CMD} -e "s|/usr/bin/python|${PYTHON_CMD}|"
 	@${REINPLACE_CMD} -e \
 		"s|prefix=.*|prefix=${PREFIX}| ; \
-		 /pkg_docdir/s|^|#|g ; \
+		 /^DOCS/s|COPYING|| ; \
 		 s|INSTALL=.*|INSTALL=${INSTALL}| ; \
 		 s|INSTALL_DATA=.*|INSTALL_DATA=${INSTALL_DATA}| ; \
 		 s|INSTALL_DIR=.*|INSTALL_DIR=${MKDIR}|g ; \
-		 s|python |${PYTHON_CMD} |g" ${WRKSRC}/Makefile
-
-.include <bsd.port.options.mk>
+		 /compileall/d" ${WRKSRC}/Makefile
 
 post-install:
-.if ${PORT_OPTIONS:MDOCS}
-	@${MKDIR} ${DOCSDIR}
-	${INSTALL_DATA} ${WRKSRC}/doc/manual.html ${DOCSDIR}
-	${INSTALL_DATA} ${WRKSRC}/ChangeLog ${DOCSDIR}
-	${INSTALL_DATA} ${WRKSRC}/README ${DOCSDIR}
-	${INSTALL_DATA} ${WRKSRC}/TODO ${DOCSDIR}
-.endif
+	(cd ${STAGEDIR}${PREFIX} && ${PYTHON_CMD} -m compileall \
+		-d ${PREFIX} -f ${DATADIR_REL})
 
 .include <bsd.port.mk>



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