diff options
author | Matt Smith <mcs@darkregion.net> | 2010-12-14 23:38:42 -0600 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2010-12-16 10:31:01 +0000 |
commit | ca05ea0f3aff143eeb90a4eda95aadc024d6ca74 (patch) | |
tree | a7be67eb51ba3688b292010c3fa4106a17c061f9 | |
parent | 064c9f35cc947da1a133c06cfdd8094b5a2c815c (diff) | |
download | alpine_aports-ca05ea0f3aff143eeb90a4eda95aadc024d6ca74.tar.bz2 alpine_aports-ca05ea0f3aff143eeb90a4eda95aadc024d6ca74.tar.xz alpine_aports-ca05ea0f3aff143eeb90a4eda95aadc024d6ca74.zip |
testing/py-boto: new aport
-rw-r--r-- | testing/py-boto/APKBUILD | 51 |
1 files changed, 51 insertions, 0 deletions
diff --git a/testing/py-boto/APKBUILD b/testing/py-boto/APKBUILD new file mode 100644 index 0000000000..00b3fe9d99 --- /dev/null +++ b/testing/py-boto/APKBUILD | |||
@@ -0,0 +1,51 @@ | |||
1 | # Contributor: Matt Smith <mcs@darkregion.net> | ||
2 | # Maintainer: Matt Smith <mcs@darkregion.net> | ||
3 | pkgname=py-boto | ||
4 | _pkgname=boto | ||
5 | pkgver=1.9b | ||
6 | pkgrel=0 | ||
7 | pkgdesc="An integrated interface to current and future infrastructural services offered by Amazon Web Services." | ||
8 | url="http://code.google.com/p/boto/" | ||
9 | arch="x86 x86_64" | ||
10 | license="MIT" | ||
11 | depends="python" | ||
12 | makedepends="python-dev py-setuptools" | ||
13 | install= | ||
14 | subpackages="$pkgname-doc" | ||
15 | source="http://$_pkgname.googlecode.com/files/$_pkgname-$pkgver.tar.gz" | ||
16 | |||
17 | _builddir="$srcdir"/$_pkgname-$pkgver | ||
18 | |||
19 | prepare() { | ||
20 | cd "$_builddir" | ||
21 | # apply patches here | ||
22 | } | ||
23 | |||
24 | build() { | ||
25 | cd "$_builddir" | ||
26 | python setup.py build || return 1 | ||
27 | } | ||
28 | |||
29 | package() { | ||
30 | cd "$_builddir" | ||
31 | python setup.py install --root "$pkgdir" | ||
32 | } | ||
33 | |||
34 | doc() { | ||
35 | cd "$_builddir" | ||
36 | |||
37 | mkdir -p "$subpkgdir"/usr/share/doc/$pkgname | ||
38 | install -Dm644 README "$subpkgdir"/usr/share/doc/$pkgname/README | ||
39 | |||
40 | # Note: The documentation in the 'docs' directory can only be generated | ||
41 | # (via sphinx-build from the py-sphinx package) once this package has | ||
42 | # been installed. Copying it off for the user. | ||
43 | mkdir -p "$subpkgdir"/usr/share/doc/$pkgname/docs | ||
44 | cp -R ./docs/* "$subpkgdir"/usr/share/doc/$pkgname/docs/ | ||
45 | chmod -R 644 "$subpkgdir"/usr/share/doc/$pkgname/docs/ | ||
46 | |||
47 | # Fix subdir perms | ||
48 | find "$subpkgdir"/usr/share/doc/$pkgname/ -type d -exec chmod 755 '{}' \; | ||
49 | } | ||
50 | |||
51 | md5sums="4fc2fd7b70a971b1363f8465aafe7091 boto-1.9b.tar.gz" | ||