From owner-svn-ports-head@FreeBSD.ORG Thu Dec 19 12:49:10 2013 Return-Path: Delivered-To: svn-ports-head@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 78DB7818; Thu, 19 Dec 2013 12:49:10 +0000 (UTC) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:1900:2254:2068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 4A8601D40; Thu, 19 Dec 2013 12:49:10 +0000 (UTC) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.7/8.14.7) with ESMTP id rBJCnAGX016971; Thu, 19 Dec 2013 12:49:10 GMT (envelope-from danilo@svn.freebsd.org) Received: (from danilo@localhost) by svn.freebsd.org (8.14.7/8.14.7/Submit) id rBJCnAFX016970; Thu, 19 Dec 2013 12:49:10 GMT (envelope-from danilo@svn.freebsd.org) Message-Id: <201312191249.rBJCnAFX016970@svn.freebsd.org> From: Danilo Egea Gondolfo Date: Thu, 19 Dec 2013 12:49:10 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r336894 - head/net-im/cjc X-SVN-Group: ports-head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-head@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: SVN commit messages for the ports tree for head List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 19 Dec 2013 12:49:10 -0000 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 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 + /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