[arch-commits] Commit in eric/trunk (PKGBUILD eric.install)

Evgeniy Alekseev arcanis at archlinux.org
Sun Oct 5 20:07:17 UTC 2014


    Date: Sunday, October 5, 2014 @ 22:07:17
  Author: arcanis
Revision: 120182

upgpkg: eric 5.4.7-1
add eric-common package

Modified:
  eric/trunk/PKGBUILD
  eric/trunk/eric.install

--------------+
 PKGBUILD     |   78 +++++++++++++++++++++++++++++++++++----------------------
 eric.install |    5 +--
 2 files changed, 51 insertions(+), 32 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2014-10-05 19:43:55 UTC (rev 120181)
+++ PKGBUILD	2014-10-05 20:07:17 UTC (rev 120182)
@@ -1,60 +1,80 @@
 # $Id$
-# Maintainer: Ray Rashif <schiv at archlinux.org>
-# Contributor: Brad Fanella <bradfanella at archlinux.us>
+# Maintainer: Evgeniy Alekseev <arcanis at archlinux dot org>
+# Contributor: Ray Rashif <schiv at archlinux dot org>
+# Contributor: Brad Fanella <bradfanellaat archlinux dot us>
 # See .contrib for older/other contributors
 
-pkgname=eric
-pkgver=5.4.6
+pkgbase=eric
+pkgname=('eric-common' 'eric')
+pkgver=5.4.7
 pkgrel=1
 pkgdesc="A full-featured Python 3.x and Ruby IDE in PyQt4"
 arch=('any')
 url="http://eric-ide.python-projects.org/"
 license=('GPL3')
-depends=('python-qscintilla' 'python>=3.4')
-conflicts=('eric5')
-provides=('eric5')
-replaces=('eric5')
-install=$pkgname.install
-source=("http://downloads.sourceforge.net/eric-ide/eric5-$pkgver.tar.gz"
-        "$pkgname.desktop")
-md5sums=('c998301f6ca99971a8f51f9d9b83d545'
+depends=('python-qscintilla')
+install=${pkgbase}.install
+source=("http://downloads.sourceforge.net/eric-ide/eric5-${pkgver}.tar.gz"
+        "${pkgbase}.desktop")
+md5sums=('774d2bd1eadd694feceb129d4556c644'
          '8aa446c29e6de54e85410e040e754c6e')
 
 prepare() {
-  cd "$srcdir/eric5-$pkgver"
+  cd "${srcdir}/eric5-${pkgver}"
 
   # some freedesktop.org compatibility adjustments (referenced at runtime)
   # TODO: check if this is still needed, else move to package()
   for i in $(grep -R "eric5.desktop" . | sed 's/:.*//' | sort -u); do
-    sed -i "s/eric5.desktop/eric.desktop/" $i
+    sed -i "s/eric5.desktop/eric.desktop/" ${i}
   done
 
   # desktop file later needed during build
   rm eric/eric5.desktop
-  install -m644 "$srcdir/$pkgname.desktop" eric/$pkgname.desktop
+  install -Dm644 "${srcdir}/${pkgbase}.desktop" "eric/${pkgbase}.desktop"
 }
 
-package() {
-  cd "$srcdir/eric5-$pkgver"
+package_eric-common() {
+  depends=()
 
-  python install.py -c -b /usr/bin -i "$pkgdir"
+  cd "${srcdir}/eric5-${pkgver}"
+  # pyqt APIs
+  install -Dm644 "eric/APIs/Python3/PyQt4.bas" \
+                 "${pkgdir}/usr/share/qt4/qsci/api/python/PyQt4.bas"
+  # qscintilla APIs
+  install -Dm644 "eric/APIs/Python3/QScintilla2.bas" \
+                 "${pkgdir}/usr/share/qt4/qsci/api/python/QScintilla2.bas"
+  # zope APIs
+  install -Dm644 "eric/APIs/Python/zope-2.10.7.api" \
+                 "${pkgdir}/usr/share/qt4/qsci/api/python/zope-2.10.7.api"
+  install -Dm644 "eric/APIs/Python/zope-2.11.2.api" \
+                 "${pkgdir}/usr/share/qt4/qsci/api/python/zope-2.11.2.api"
+  install -Dm644 "eric/APIs/Python/zope-3.3.1.api" \
+                 "${pkgdir}/usr/share/qt4/qsci/api/python/zope-3.3.1.api"
+  # ruby APIs
+  install -Dm644 "eric/APIs/Ruby/Ruby-1.8.7.api" \
+                 "${pkgdir}/usr/share/qt4/qsci/api/ruby/Ruby-1.8.7.api"
+  install -Dm644 "eric/APIs/Ruby/Ruby-1.8.7.bas" \
+                 "${pkgdir}/usr/share/qt4/qsci/api/ruby/Ruby-1.8.7.bas"
+  install -Dm644 "eric/APIs/Ruby/Ruby-1.9.1.api" \
+                 "${pkgdir}/usr/share/qt4/qsci/api/ruby/Ruby-1.9.1.api"
+  install -Dm644 "eric/APIs/Ruby/Ruby-1.9.1.bas" \
+                 "${pkgdir}/usr/share/qt4/qsci/api/ruby/Ruby-1.9.1.bas"
+}
 
-  # Remove files conflicting with eric4
-  # what are we doing here?
-  # TODO: tell upstream to fix their stuff
-  #   and allow installation of eric4 + eric5
-  #   OR package these files separately eg. 'eric-common'
-  rm "$pkgdir/usr/share/qt4/qsci/api/python/zope-2.10.7.api"
-  rm "$pkgdir/usr/share/qt4/qsci/api/python/zope-2.11.2.api"
-  rm "$pkgdir/usr/share/qt4/qsci/api/python/zope-3.3.1.api"
-  rm "$pkgdir/usr/share/qt4/qsci/api/ruby/Ruby-1.8.7.api"
+package_eric() {
+  depends+=('eric-common')
 
+  cd "${srcdir}/eric5-${pkgver}"
+  python install.py -c -b /usr/bin -i "${pkgdir}"
+  # remove common components
+  find "${pkgdir}/usr/share/qt4/qsci/api/" -type f -not -name 'eric*' -exec rm {} \;
+
   # some canonical symlinks
   # TODO: might we want to just package this as eric5?
   #       upstream references them as two distinct versions...
-  cd "$pkgdir/usr/bin"
+  cd "${pkgdir}/usr/bin"
   for i in *; do
-    ln -s /usr/bin/$i ${i/eric5/eric}
+    ln -s /usr/bin/${i} ${i/eric5/eric}
   done
 }
 

Modified: eric.install
===================================================================
--- eric.install	2014-10-05 19:43:55 UTC (rev 120181)
+++ eric.install	2014-10-05 20:07:17 UTC (rev 120182)
@@ -1,10 +1,9 @@
 post_install() {
-	echo "  > Updating desktop mime database..."
-	update-desktop-database -q
+    update-desktop-database -q
 }
 
 post_upgrade() {
-	post_install
+    post_install
 }
 
 # vim:set ts=2 sw=2 et:



More information about the arch-commits mailing list