[arch-commits] Commit in kicad/repos (6 files)

Kyle Keen kkeen at archlinux.org
Wed Aug 3 13:41:05 UTC 2016


    Date: Wednesday, August 3, 2016 @ 13:41:04
  Author: kkeen
Revision: 184993

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

Added:
  kicad/repos/community-staging-i686/
  kicad/repos/community-staging-i686/PKGBUILD
    (from rev 184992, kicad/trunk/PKGBUILD)
  kicad/repos/community-staging-i686/swig.3.0.10.patch
    (from rev 184992, kicad/trunk/swig.3.0.10.patch)
  kicad/repos/community-staging-x86_64/
  kicad/repos/community-staging-x86_64/PKGBUILD
    (from rev 184992, kicad/trunk/PKGBUILD)
  kicad/repos/community-staging-x86_64/swig.3.0.10.patch
    (from rev 184992, kicad/trunk/swig.3.0.10.patch)

--------------------------------------------+
 community-staging-i686/PKGBUILD            |   64 +++++++++++++++++++++++++++
 community-staging-i686/swig.3.0.10.patch   |   23 +++++++++
 community-staging-x86_64/PKGBUILD          |   64 +++++++++++++++++++++++++++
 community-staging-x86_64/swig.3.0.10.patch |   23 +++++++++
 4 files changed, 174 insertions(+)

Copied: kicad/repos/community-staging-i686/PKGBUILD (from rev 184992, kicad/trunk/PKGBUILD)
===================================================================
--- community-staging-i686/PKGBUILD	                        (rev 0)
+++ community-staging-i686/PKGBUILD	2016-08-03 13:41:04 UTC (rev 184993)
@@ -0,0 +1,64 @@
+# $Id$
+# Maintainer: Kyle Keen <keenerd at gmail.com>
+# Contributor: Marq Schneider <queueRAM at gmail.com>
+
+pkgname=kicad
+pkgver=4.0.2
+pkgrel=7
+pkgdesc="Electronic schematic and printed circuit board (PCB) design tools"
+arch=('i686' 'x86_64')
+#url="http://iut-tice.ujf-grenoble.fr/kicad/"
+url="http://kicad-pcb.org/"
+license=('GPL')
+depends=('wxgtk' 'hicolor-icon-theme' 'desktop-file-utils' 'libsm' 'boost-libs' 'glew' 'wxpython')
+makedepends=('cmake' 'zlib' 'mesa' 'boost' 'gettext' 'wxpython' 'swig')
+optdepends=('kicad-library: for footprints and symbols'
+            'kicad-library-3d: for 3d models of components')
+source=("https://launchpad.net/kicad/4.0/$pkgver/+download/kicad-$pkgver.tar.xz"
+        "kicad-i18n.$pkgver.tar.gz::https://github.com/KiCad/kicad-i18n/archive/$pkgver.tar.gz"
+        "swig.3.0.10.patch")
+md5sums=('6c40f3a511f47c1145ccc75b9c3729f7'
+         '14b17243b11bccc0483efb3743bd0f7b'
+         'd57d67f202e19526187dadfda128862f')
+
+prepare() {
+  cd "$srcdir/kicad-$pkgver"
+  # official patch, remove for 4.0.3
+  patch -Np0 -i "$srcdir/swig.3.0.10.patch"
+}
+
+build() {
+  cd "$srcdir/kicad-$pkgver"
+
+  mkdir -p build/Release
+  cd build/Release
+  cmake ../.. -DKICAD_STABLE_VERSION=ON     \
+              -DKICAD_REPO_NAME=stable      \
+              -DKICAD_BUILD_VERSION=$pkgver \
+              -DCMAKE_BUILD_TYPE=Release    \
+              -DCMAKE_INSTALL_PREFIX=/usr   \
+              -DKICAD_SKIP_BOOST=ON         \
+              -DKICAD_SCRIPTING=ON          \
+              -DKICAD_SCRIPTING_MODULES=ON  \
+              -DKICAD_SCRIPTING_WXPYTHON=ON \
+              -DBUILD_GITHUB_PLUGIN=ON
+  make
+
+  cd "$srcdir/kicad-i18n-$pkgver"
+  mkdir -p build/Release
+  cd build/Release
+  cmake ../.. -DCMAKE_INSTALL_PREFIX=/usr
+  make
+}
+
+package() {
+  cd "$srcdir/kicad-$pkgver/build/Release"
+
+  make DESTDIR="$pkgdir" install
+
+  # copy updated linux icons
+  #cp -r -n "$srcdir/$pkgname-icons/resources/linux/mime/icons" "$pkgdir/usr/share/"
+
+  cd "$srcdir/kicad-i18n-$pkgver/build/Release"
+  make DESTDIR="$pkgdir" install
+}

Copied: kicad/repos/community-staging-i686/swig.3.0.10.patch (from rev 184992, kicad/trunk/swig.3.0.10.patch)
===================================================================
--- community-staging-i686/swig.3.0.10.patch	                        (rev 0)
+++ community-staging-i686/swig.3.0.10.patch	2016-08-03 13:41:04 UTC (rev 184993)
@@ -0,0 +1,23 @@
+--- scripting/build_tools/fix_swig_imports.py	2016-02-13 16:14:42.000000000 -0500
++++ scripting/build_tools/fix_swig_imports.py	2016-08-03 01:36:10.110412204 -0400
+@@ -37,7 +37,19 @@
+ txt = ""
+ 
+ for l in lines:
+-    if l.startswith("if version_info >= (2,6,0):"):     # ok with swig version <= 3.0.2
++    if l.startswith("if _swig_python_version_info >= (2, 7, 0):"):     # ok with swig version >= 3.0.10
++        l = l.replace("_swig_python_version_info >= (2, 7, 0)","False")
++        doneOk = True
++    elif l.startswith("elif _swig_python_version_info >= (2, 6, 0):"):  # needed with swig version >= 3.0.10
++        l = l.replace("_swig_python_version_info >= (2, 6, 0)","False")
++        doneOk = True
++    if l.startswith("if version_info >= (2, 7, 0):"):     # ok with swig version >= 3.0.9
++        l = l.replace("version_info >= (2, 7, 0)","False")
++        doneOk = True
++    elif l.startswith("elif version_info >= (2, 6, 0):"):  # needed with swig version >= 3.0.9
++        l = l.replace("version_info >= (2, 6, 0)","False")
++        doneOk = True
++    elif l.startswith("if version_info >= (2,6,0):"):     # ok with swig version <= 3.0.2
+         l = l.replace("version_info >= (2,6,0)","False")
+         doneOk = True
+     elif l.startswith("if version_info >= (2, 6, 0):"): # needed with swig version 3.0.3

Copied: kicad/repos/community-staging-x86_64/PKGBUILD (from rev 184992, kicad/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD	                        (rev 0)
+++ community-staging-x86_64/PKGBUILD	2016-08-03 13:41:04 UTC (rev 184993)
@@ -0,0 +1,64 @@
+# $Id$
+# Maintainer: Kyle Keen <keenerd at gmail.com>
+# Contributor: Marq Schneider <queueRAM at gmail.com>
+
+pkgname=kicad
+pkgver=4.0.2
+pkgrel=7
+pkgdesc="Electronic schematic and printed circuit board (PCB) design tools"
+arch=('i686' 'x86_64')
+#url="http://iut-tice.ujf-grenoble.fr/kicad/"
+url="http://kicad-pcb.org/"
+license=('GPL')
+depends=('wxgtk' 'hicolor-icon-theme' 'desktop-file-utils' 'libsm' 'boost-libs' 'glew' 'wxpython')
+makedepends=('cmake' 'zlib' 'mesa' 'boost' 'gettext' 'wxpython' 'swig')
+optdepends=('kicad-library: for footprints and symbols'
+            'kicad-library-3d: for 3d models of components')
+source=("https://launchpad.net/kicad/4.0/$pkgver/+download/kicad-$pkgver.tar.xz"
+        "kicad-i18n.$pkgver.tar.gz::https://github.com/KiCad/kicad-i18n/archive/$pkgver.tar.gz"
+        "swig.3.0.10.patch")
+md5sums=('6c40f3a511f47c1145ccc75b9c3729f7'
+         '14b17243b11bccc0483efb3743bd0f7b'
+         'd57d67f202e19526187dadfda128862f')
+
+prepare() {
+  cd "$srcdir/kicad-$pkgver"
+  # official patch, remove for 4.0.3
+  patch -Np0 -i "$srcdir/swig.3.0.10.patch"
+}
+
+build() {
+  cd "$srcdir/kicad-$pkgver"
+
+  mkdir -p build/Release
+  cd build/Release
+  cmake ../.. -DKICAD_STABLE_VERSION=ON     \
+              -DKICAD_REPO_NAME=stable      \
+              -DKICAD_BUILD_VERSION=$pkgver \
+              -DCMAKE_BUILD_TYPE=Release    \
+              -DCMAKE_INSTALL_PREFIX=/usr   \
+              -DKICAD_SKIP_BOOST=ON         \
+              -DKICAD_SCRIPTING=ON          \
+              -DKICAD_SCRIPTING_MODULES=ON  \
+              -DKICAD_SCRIPTING_WXPYTHON=ON \
+              -DBUILD_GITHUB_PLUGIN=ON
+  make
+
+  cd "$srcdir/kicad-i18n-$pkgver"
+  mkdir -p build/Release
+  cd build/Release
+  cmake ../.. -DCMAKE_INSTALL_PREFIX=/usr
+  make
+}
+
+package() {
+  cd "$srcdir/kicad-$pkgver/build/Release"
+
+  make DESTDIR="$pkgdir" install
+
+  # copy updated linux icons
+  #cp -r -n "$srcdir/$pkgname-icons/resources/linux/mime/icons" "$pkgdir/usr/share/"
+
+  cd "$srcdir/kicad-i18n-$pkgver/build/Release"
+  make DESTDIR="$pkgdir" install
+}

Copied: kicad/repos/community-staging-x86_64/swig.3.0.10.patch (from rev 184992, kicad/trunk/swig.3.0.10.patch)
===================================================================
--- community-staging-x86_64/swig.3.0.10.patch	                        (rev 0)
+++ community-staging-x86_64/swig.3.0.10.patch	2016-08-03 13:41:04 UTC (rev 184993)
@@ -0,0 +1,23 @@
+--- scripting/build_tools/fix_swig_imports.py	2016-02-13 16:14:42.000000000 -0500
++++ scripting/build_tools/fix_swig_imports.py	2016-08-03 01:36:10.110412204 -0400
+@@ -37,7 +37,19 @@
+ txt = ""
+ 
+ for l in lines:
+-    if l.startswith("if version_info >= (2,6,0):"):     # ok with swig version <= 3.0.2
++    if l.startswith("if _swig_python_version_info >= (2, 7, 0):"):     # ok with swig version >= 3.0.10
++        l = l.replace("_swig_python_version_info >= (2, 7, 0)","False")
++        doneOk = True
++    elif l.startswith("elif _swig_python_version_info >= (2, 6, 0):"):  # needed with swig version >= 3.0.10
++        l = l.replace("_swig_python_version_info >= (2, 6, 0)","False")
++        doneOk = True
++    if l.startswith("if version_info >= (2, 7, 0):"):     # ok with swig version >= 3.0.9
++        l = l.replace("version_info >= (2, 7, 0)","False")
++        doneOk = True
++    elif l.startswith("elif version_info >= (2, 6, 0):"):  # needed with swig version >= 3.0.9
++        l = l.replace("version_info >= (2, 6, 0)","False")
++        doneOk = True
++    elif l.startswith("if version_info >= (2,6,0):"):     # ok with swig version <= 3.0.2
+         l = l.replace("version_info >= (2,6,0)","False")
+         doneOk = True
+     elif l.startswith("if version_info >= (2, 6, 0):"): # needed with swig version 3.0.3



More information about the arch-commits mailing list