X-Original-To: alpine-devel@lists.alpinelinux.org Delivered-To: alpine-devel@lists.alpinelinux.org Received: from smtp151.dfw.emailsrvr.com (smtp151.dfw.emailsrvr.com [67.192.241.151]) by lists.alpinelinux.org (Postfix) with ESMTP id 116EB1EBFEE for ; Wed, 15 Dec 2010 05:31:28 +0000 (UTC) Received: from localhost (localhost.localdomain [127.0.0.1]) by smtp5.relay.dfw1a.emailsrvr.com (SMTP Server) with ESMTP id 925D758CF4; Wed, 15 Dec 2010 00:31:28 -0500 (EST) X-Virus-Scanned: OK Received: by smtp5.relay.dfw1a.emailsrvr.com (Authenticated sender: mcs-AT-darkregion.net) with ESMTPSA id C457858682; Wed, 15 Dec 2010 00:31:27 -0500 (EST) From: Matt Smith To: alpine-devel@lists.alpinelinux.org Cc: Matt Smith Subject: [alpine-devel] [PATCH] testing/py-pygments: new aport Date: Tue, 14 Dec 2010 23:31:18 -0600 Message-Id: <1292391078-5406-1-git-send-email-mcs@darkregion.net> X-Mailer: git-send-email 1.7.3.3 X-Mailinglist: alpine-devel Precedence: list List-Id: Alpine Development List-Unsubscribe: List-Post: List-Help: List-Subscribe: --- testing/py-pygments/APKBUILD | 54 ++++++++++++++++++++++++++++++++++++++++++ 1 files changed, 54 insertions(+), 0 deletions(-) create mode 100644 testing/py-pygments/APKBUILD diff --git a/testing/py-pygments/APKBUILD b/testing/py-pygments/APKBUILD new file mode 100644 index 0000000..ac6da6e --- /dev/null +++ b/testing/py-pygments/APKBUILD @@ -0,0 +1,54 @@ +# Contributor: Matt Smith +# Maintainer: Matt Smith +pkgname=py-pygments +_pkgname=Pygments +pkgver=1.3.1 +pkgrel=0 +pkgdesc="Pygments is a syntax highlighting package written in Python." +url="http://pygments.org/" +arch="x86 x86_64" +license="BSD" +depends="python" +makedepends="python-dev py-setuptools" +install= +subpackages="$pkgname-doc" +source="http://pypi.python.org/packages/source/${_pkgname:0:1}/$_pkgname/$_pkgname-$pkgver.tar.gz" + +_builddir="$srcdir"/$_pkgname-$pkgver + +prepare() { + cd "$_builddir" + # apply patches here +} + +build() { + cd "$_builddir" + python setup.py build || return 1 +} + +package() { + cd "$_builddir" + python setup.py install --root "$pkgdir" +} + +doc() { + cd "$_builddir" + + mkdir -p "$subpkgdir"/usr/share/doc/$pkgname + for doc in AUTHORS CHANGES LICENSE TODO; do + install -Dm644 $doc "$subpkgdir"/usr/share/doc/$pkgname/$doc + done + + install -Dm644 docs/pygmentize.1 "$subpkgdir"/usr/share/man/man1/pygmentize.1 + install -Dm644 docs/generate.py "$subpkgdir"/usr/share/doc/$pkgname/generate.py + for dir in build src; do + mkdir -p "$subpkgdir"/usr/share/doc/$pkgname/$dir + cp -R ./docs/$dir/* "$subpkgdir"/usr/share/doc/$pkgname/$dir/ + chmod -R 644 "$subpkgdir"/usr/share/doc/$pkgname/$dir/ + done + + # Fix subdir perms + find "$subpkgdir"/usr/share/doc/$pkgname/ -type d -exec chmod 755 '{}' \; +} + +md5sums="54be67c04834f13d7e255e1797d629a5 Pygments-1.3.1.tar.gz" -- 1.7.3.3 --- Unsubscribe: alpine-devel+unsubscribe@lists.alpinelinux.org Help: alpine-devel+help@lists.alpinelinux.org ---