[arch-commits] Commit in marisa/repos (4 files)

Evangelos Foutras foutrelis at archlinux.org
Mon Jan 9 18:42:47 UTC 2017


    Date: Monday, January 9, 2017 @ 18:42:47
  Author: foutrelis
Revision: 206223

archrelease: copy trunk to community-staging-i686, community-staging-x86_64

Added:
  marisa/repos/community-staging-i686/
  marisa/repos/community-staging-i686/PKGBUILD
    (from rev 206222, marisa/trunk/PKGBUILD)
  marisa/repos/community-staging-x86_64/
  marisa/repos/community-staging-x86_64/PKGBUILD
    (from rev 206222, marisa/trunk/PKGBUILD)

-----------------------------------+
 community-staging-i686/PKGBUILD   |  108 ++++++++++++++++++++++++++++++++++++
 community-staging-x86_64/PKGBUILD |  108 ++++++++++++++++++++++++++++++++++++
 2 files changed, 216 insertions(+)

Copied: marisa/repos/community-staging-i686/PKGBUILD (from rev 206222, marisa/trunk/PKGBUILD)
===================================================================
--- community-staging-i686/PKGBUILD	                        (rev 0)
+++ community-staging-i686/PKGBUILD	2017-01-09 18:42:47 UTC (rev 206223)
@@ -0,0 +1,108 @@
+# $Id$
+# Maintainer: Felix Yan <felixonmars at gmail.com>
+# Contributor: ponsfoot <cabezon dot hashimoto at gmail dot com>
+
+pkgbase=marisa
+pkgname=('marisa' 'perl-marisa' 'python2-marisa' 'ruby-marisa')
+pkgver=0.2.4
+pkgrel=8
+arch=('i686' 'x86_64')
+url="https://code.google.com/p/marisa-trie/"
+license=('BSD' 'LGPL')
+makedepends=('python2' 'ruby' 'perl')
+source=(https://storage.googleapis.com/google-code-archive-downloads/v2/code.google.com/marisa-trie/marisa-$pkgver.tar.gz)
+sha1sums=('fb0ed7d993e84dff32ec456a79bd36a00022629d')
+
+build() {
+  cd "${pkgname}-${pkgver}"
+  ./configure --prefix=/usr --disable-static \
+    # --enable-popcnt
+    # --enable-sse2
+    # --enable-sse3
+    # --enable-ssse3
+    # --enable-sse4.1
+    # --enable-sse4.2
+    # --enable-sse4
+    # --enable-sse4a
+
+  sed -i 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' libtool
+  sed -i 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool
+  make
+
+  # Perl bindings
+  cd "${srcdir}/${pkgbase}-${pkgver}/bindings/perl"
+  perl Makefile.PL \
+    INC="-I${srcdir}/${pkgbase}-${pkgver}/lib" \
+    LIBS="-L${srcdir}/${pkgbase}-${pkgver}/lib/.libs"
+  make
+
+  # Python bindings
+  cd "${srcdir}/${pkgbase}-${pkgver}/bindings/python"
+  python2 setup.py build_ext \
+    --include-dirs="${srcdir}/${pkgbase}-${pkgver}/lib" \
+    --library-dirs="${srcdir}/${pkgbase}-${pkgver}/lib/.libs"
+  python2 setup.py build
+
+  # Ruby bindings
+  cd "${srcdir}/${pkgbase}-${pkgver}/bindings/ruby"
+  ruby extconf.rb \
+    --with-opt-include="${srcdir}/${pkgbase}-${pkgver}/lib" \
+    --with-opt-lib="${srcdir}/${pkgbase}-${pkgver}/lib/.libs" \
+    --vendor
+  make
+}
+
+package_marisa() {
+  pkgdesc="Static and space-efficient trie data structure library"
+  depends=('gcc-libs')
+
+  cd "${pkgbase}-${pkgver}"
+  make DESTDIR="$pkgdir" install
+
+  install -d "${pkgdir}/usr/share/doc/${pkgbase}-${pkgver}"
+  install -m 644 docs/* README "${pkgdir}/usr/share/doc/${pkgbase}-${pkgver}/"
+
+  install -d "${pkgdir}/usr/share/licenses/$pkgname"
+  install -m 644 AUTHORS COPYING "${pkgdir}/usr/share/licenses/$pkgname/"
+}
+
+package_perl-marisa() {
+  pkgdesc="Perl language binding for marisa"
+  depends=('perl' 'marisa')
+
+  cd "${pkgbase}-${pkgver}/bindings/perl"
+  make DESTDIR="$pkgdir" install
+
+  cd ../..
+  install -d "${pkgdir}/usr/share/licenses/$pkgname"
+  install -m 644 AUTHORS COPYING "${pkgdir}/usr/share/licenses/$pkgname/"
+}
+
+package_python2-marisa() {
+  pkgdesc="Python 2.x language binding for marisa"
+  depends=('python2' 'marisa')
+
+  cd "${pkgbase}-${pkgver}/bindings/python"
+  python2 setup.py install -O1 --root="$pkgdir"
+
+  cd ../..
+  install -d "${pkgdir}/usr/share/licenses/$pkgname"
+  install -m 644 AUTHORS COPYING "${pkgdir}/usr/share/licenses/$pkgname/"
+}
+
+package_ruby-marisa() {
+  pkgdesc="Ruby language binding for marisa"
+  depends=('ruby' 'marisa')
+
+  cd "${pkgbase}-${pkgver}/bindings/ruby"
+    _hdrdir=$(pkg-config --variable=rubyhdrdir ruby-2.4)
+    _arch=$(pkg-config --variable=arch ruby-2.4)
+  make DESTDIR="$pkgdir" install \
+    hdrdir="$_hdrdir" \
+    arch_hdrdir="${_hdrdir}/${_arch}" \
+    rubyhdrdir="$_hdrdir"
+
+  cd ../..
+  install -d "${pkgdir}/usr/share/licenses/$pkgname"
+  install -m 644 AUTHORS COPYING "${pkgdir}/usr/share/licenses/$pkgname/"
+}

Copied: marisa/repos/community-staging-x86_64/PKGBUILD (from rev 206222, marisa/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD	                        (rev 0)
+++ community-staging-x86_64/PKGBUILD	2017-01-09 18:42:47 UTC (rev 206223)
@@ -0,0 +1,108 @@
+# $Id$
+# Maintainer: Felix Yan <felixonmars at gmail.com>
+# Contributor: ponsfoot <cabezon dot hashimoto at gmail dot com>
+
+pkgbase=marisa
+pkgname=('marisa' 'perl-marisa' 'python2-marisa' 'ruby-marisa')
+pkgver=0.2.4
+pkgrel=8
+arch=('i686' 'x86_64')
+url="https://code.google.com/p/marisa-trie/"
+license=('BSD' 'LGPL')
+makedepends=('python2' 'ruby' 'perl')
+source=(https://storage.googleapis.com/google-code-archive-downloads/v2/code.google.com/marisa-trie/marisa-$pkgver.tar.gz)
+sha1sums=('fb0ed7d993e84dff32ec456a79bd36a00022629d')
+
+build() {
+  cd "${pkgname}-${pkgver}"
+  ./configure --prefix=/usr --disable-static \
+    # --enable-popcnt
+    # --enable-sse2
+    # --enable-sse3
+    # --enable-ssse3
+    # --enable-sse4.1
+    # --enable-sse4.2
+    # --enable-sse4
+    # --enable-sse4a
+
+  sed -i 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' libtool
+  sed -i 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool
+  make
+
+  # Perl bindings
+  cd "${srcdir}/${pkgbase}-${pkgver}/bindings/perl"
+  perl Makefile.PL \
+    INC="-I${srcdir}/${pkgbase}-${pkgver}/lib" \
+    LIBS="-L${srcdir}/${pkgbase}-${pkgver}/lib/.libs"
+  make
+
+  # Python bindings
+  cd "${srcdir}/${pkgbase}-${pkgver}/bindings/python"
+  python2 setup.py build_ext \
+    --include-dirs="${srcdir}/${pkgbase}-${pkgver}/lib" \
+    --library-dirs="${srcdir}/${pkgbase}-${pkgver}/lib/.libs"
+  python2 setup.py build
+
+  # Ruby bindings
+  cd "${srcdir}/${pkgbase}-${pkgver}/bindings/ruby"
+  ruby extconf.rb \
+    --with-opt-include="${srcdir}/${pkgbase}-${pkgver}/lib" \
+    --with-opt-lib="${srcdir}/${pkgbase}-${pkgver}/lib/.libs" \
+    --vendor
+  make
+}
+
+package_marisa() {
+  pkgdesc="Static and space-efficient trie data structure library"
+  depends=('gcc-libs')
+
+  cd "${pkgbase}-${pkgver}"
+  make DESTDIR="$pkgdir" install
+
+  install -d "${pkgdir}/usr/share/doc/${pkgbase}-${pkgver}"
+  install -m 644 docs/* README "${pkgdir}/usr/share/doc/${pkgbase}-${pkgver}/"
+
+  install -d "${pkgdir}/usr/share/licenses/$pkgname"
+  install -m 644 AUTHORS COPYING "${pkgdir}/usr/share/licenses/$pkgname/"
+}
+
+package_perl-marisa() {
+  pkgdesc="Perl language binding for marisa"
+  depends=('perl' 'marisa')
+
+  cd "${pkgbase}-${pkgver}/bindings/perl"
+  make DESTDIR="$pkgdir" install
+
+  cd ../..
+  install -d "${pkgdir}/usr/share/licenses/$pkgname"
+  install -m 644 AUTHORS COPYING "${pkgdir}/usr/share/licenses/$pkgname/"
+}
+
+package_python2-marisa() {
+  pkgdesc="Python 2.x language binding for marisa"
+  depends=('python2' 'marisa')
+
+  cd "${pkgbase}-${pkgver}/bindings/python"
+  python2 setup.py install -O1 --root="$pkgdir"
+
+  cd ../..
+  install -d "${pkgdir}/usr/share/licenses/$pkgname"
+  install -m 644 AUTHORS COPYING "${pkgdir}/usr/share/licenses/$pkgname/"
+}
+
+package_ruby-marisa() {
+  pkgdesc="Ruby language binding for marisa"
+  depends=('ruby' 'marisa')
+
+  cd "${pkgbase}-${pkgver}/bindings/ruby"
+    _hdrdir=$(pkg-config --variable=rubyhdrdir ruby-2.4)
+    _arch=$(pkg-config --variable=arch ruby-2.4)
+  make DESTDIR="$pkgdir" install \
+    hdrdir="$_hdrdir" \
+    arch_hdrdir="${_hdrdir}/${_arch}" \
+    rubyhdrdir="$_hdrdir"
+
+  cd ../..
+  install -d "${pkgdir}/usr/share/licenses/$pkgname"
+  install -m 644 AUTHORS COPYING "${pkgdir}/usr/share/licenses/$pkgname/"
+}



More information about the arch-commits mailing list