summaryrefslogtreecommitdiff
path: root/community-staging
diff options
context:
space:
mode:
authorroot <root@rshg047.dnsready.net>2011-06-30 23:11:47 +0000
committerroot <root@rshg047.dnsready.net>2011-06-30 23:11:47 +0000
commit64e72407414ce0badfb541782125cd8e3a25c12e (patch)
treeb77ce06374d43b1653bc517ebdbd10e1d0f2b328 /community-staging
parent5e8a6a470237711ad18f12dde87deea6f2b8b0e0 (diff)
Thu Jun 30 23:11:47 UTC 2011
Diffstat (limited to 'community-staging')
-rw-r--r--community-staging/python-bsddb/LICENSE19
-rw-r--r--community-staging/python-bsddb/PKGBUILD62
-rw-r--r--community-staging/wml/PKGBUILD42
3 files changed, 123 insertions, 0 deletions
diff --git a/community-staging/python-bsddb/LICENSE b/community-staging/python-bsddb/LICENSE
new file mode 100644
index 000000000..7d6035775
--- /dev/null
+++ b/community-staging/python-bsddb/LICENSE
@@ -0,0 +1,19 @@
+Copyright (c) 2008-2009 Jesus Cea Avion
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in
+all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
+THE SOFTWARE. \ No newline at end of file
diff --git a/community-staging/python-bsddb/PKGBUILD b/community-staging/python-bsddb/PKGBUILD
new file mode 100644
index 000000000..578d0921d
--- /dev/null
+++ b/community-staging/python-bsddb/PKGBUILD
@@ -0,0 +1,62 @@
+# $Id: PKGBUILD 50695 2011-06-29 15:25:25Z stephane $
+# Maintainer: Kaiting Chen <kaitocracy@gmail.com>
+# Contributor: Stéphane Gaudreault <stephane@archlinux.org>
+# Contributor: Douglas Soares de Andrade <dsandrade@gmail.com>
+# Contributor: William Rea <sillywilly@gmail.com>
+
+pkgbase=python-bsddb
+pkgname=('python2-bsddb' 'python-bsddb')
+_hgrel=600
+pkgver=5.1.2.${_hgrel}
+pkgrel=1
+pkgdesc="Python interface for BerkeleyDB"
+license=('MIT')
+arch=('i686' 'x86_64')
+url="http://www.jcea.es/programacion/pybsddb.htm"
+makedepends=('python2-distribute' 'python-distribute' 'mercurial')
+source=("ftp://ftp.archlinux.org/other/community/${pkgbase}/${pkgbase}-${pkgver}.src.tar.xz"
+ 'LICENSE')
+sha1sums=('50e7b4c9c11b06c6d871dd93af1cc228687a0227'
+ 'ef4e4caf618781104dbf5824279ed39d127b4713')
+
+# source PKGBUILD && mksource
+mksource() {
+ _hgroot="http://hg.jcea.es/pybsddb/"
+ _hgrepo=pybsddb
+ [ -d "${_hgrepo}" ] && hg pull -u -r ${_hgrel} || hg clone ${_hgroot} -r ${_hgrel}
+
+ _dirname=${pkgbase}-${pkgver}
+ mv ${_hgrepo} ${_dirname}
+ tar -cJvf ${_dirname}.src.tar.xz ${_dirname}
+ rm -fr ${_dirname}
+}
+
+build () {
+ cd "${srcdir}"
+
+ cp -r ${pkgbase}-${pkgver}{,-python2}
+
+ # Build python 3 module
+ cd ${pkgbase}-${pkgver}
+ python setup.py --berkeley-db=/usr build
+
+ # Build python 2 module
+ cd ../${pkgbase}-${pkgver}-python2
+ python2 setup.py --berkeley-db=/usr build
+}
+
+package_python2-bsddb() {
+ depends=('db' 'python2>=2.7')
+ cd "${srcdir}/${pkgbase}-${pkgver}-python2"
+
+ python2 setup.py --berkeley-db=/usr install --root="${pkgdir}" --skip-build --optimize=1
+ install -Dm644 "${srcdir}"/LICENSE "${pkgdir}"/usr/share/licenses/${pkgname}/LICENSE
+}
+
+package_python-bsddb() {
+ depends=('db' 'python>=3.2')
+ cd "${srcdir}/${pkgbase}-${pkgver}"
+
+ python setup.py --berkeley-db=/usr install --root="${pkgdir}" --skip-build --optimize=1
+ install -Dm644 "${srcdir}"/LICENSE "${pkgdir}"/usr/share/licenses/${pkgname}/LICENSE
+}
diff --git a/community-staging/wml/PKGBUILD b/community-staging/wml/PKGBUILD
new file mode 100644
index 000000000..33c34b025
--- /dev/null
+++ b/community-staging/wml/PKGBUILD
@@ -0,0 +1,42 @@
+# $Id: PKGBUILD 50698 2011-06-29 15:35:12Z stephane $
+# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com>
+
+pkgname=wml
+pkgver=2.0.11
+pkgrel=7
+pkgdesc="The Website Meta Language"
+arch=('i686' 'x86_64')
+url="http://thewml.org/"
+license=('GPL')
+depends=('perl' 'libpng' 'gdbm' 'db' 'ncurses')
+makedepends=('lynx')
+source=("http://thewml.org/distrib/${pkgname}-${pkgver}.tar.gz")
+md5sums=('a26feebf4e59e9a6940f54c69dde05b5')
+build() {
+ cd ${pkgname}-${pkgver}
+
+ # missing Perl modules fix
+ sed -i 's/PREFIX=$(libdir)\/perl/DESTDIR=\.\.\/\.\.\/\.\.\/\.\.\/pkg\/ PREFIX=$(libdir)\/perl/' wml_common/Makefile.in
+ sed -i 's/$(MAKE) pure_perl_install $(MM_INSTALL_OPTS)/$(MAKE) pure_perl_install/' wml_common/Makefile.in
+
+ unset LDFLAGS
+ ./configure \
+ --prefix=/usr
+
+ # compile fixhack
+ sed -i 's#/usr/lib/perl5/core_perl/auto/DynaLoader/DynaLoader.a##' wml_backend/p3_eperl/Makefile
+ sed -i 's/extern struct option options\[\]\;//' ${srcdir}/${pkgname}-${pkgver}/wml_backend/p3_eperl/eperl_proto.h
+ sed -i 's|strip $dsttmp|#strip $dsttmp|' etc/shtool
+ mkdir -p ${pkgdir}/usr/bin ${pkgdir}/usr/lib/wml/exec ${pkgdir}/usr/man/man{1,3,7} ${pkgdir}/usr/man/cat{1,7}
+
+# make clean
+ make
+}
+
+package() {
+ cd ${pkgname}-${pkgver}
+
+ make prefix=${pkgdir}/usr install
+
+ [ -d ${pkgdir}/usr/man ] && mkdir -p ${pkgdir}/usr/share && mv ${pkgdir}/usr/man ${pkgdir}/usr/share
+}