summaryrefslogtreecommitdiff
path: root/pcr
diff options
context:
space:
mode:
authorAurelien Desbrieres <aurelien@hackers.camp>2014-12-24 08:47:01 +0100
committerAurelien Desbrieres <aurelien@hackers.camp>2014-12-24 08:47:01 +0100
commitc91c5e5ebf2206fc48072184652671fc52b7c828 (patch)
treeac52e6e39d884141e1720e9f26197fac29c06311 /pcr
parent3bd93335b33fa5583bca70cd3124b4aeaa42b138 (diff)
parentf723263fa6daa1d85cf2993c9c1baf04138d7fc3 (diff)
downloadabslibre-c91c5e5ebf2206fc48072184652671fc52b7c828.tar.gz
abslibre-c91c5e5ebf2206fc48072184652671fc52b7c828.tar.bz2
abslibre-c91c5e5ebf2206fc48072184652671fc52b7c828.zip
gnoduino updated
Diffstat (limited to 'pcr')
-rw-r--r--pcr/gnoduino/PKGBUILD42
-rw-r--r--pcr/gnoduino/gnoduino.install23
-rw-r--r--pcr/spyder/PKGBUILD51
-rw-r--r--pcr/spyder/pylint.patch28
-rw-r--r--pcr/spyder/spyder.install12
5 files changed, 65 insertions, 91 deletions
diff --git a/pcr/gnoduino/PKGBUILD b/pcr/gnoduino/PKGBUILD
new file mode 100644
index 000000000..329c5a5bd
--- /dev/null
+++ b/pcr/gnoduino/PKGBUILD
@@ -0,0 +1,42 @@
+# Maintainer : Aurelien Desbriers <aurelien@hackers.camp>
+# Contributor: speps <speps at aur dot archlinux dot org>
+
+pkgname=gnoduino
+pkgver=0.5.1
+pkgrel=1
+pkgdesc="An implementation of well-known Arduino IDE for GNOME"
+arch=(any)
+url="http://gnome.eu.org/index.php/Gnoduino"
+license=('GPL')
+depends=('avr-libc' 'avrdude' 'avr-binutils' 'gcc-avr' 'pyxdg'
+ 'pygtksourceview2' 'python2-pyserial'
+ 'python2-gconf' 'desktop-file-utils')
+makedepends=('python2-distribute')
+install="$pkgname.install"
+source=("http://gnome.eu.org/$pkgname-$pkgver.tar.gz")
+
+prepare() {
+ cd $pkgname-$pkgver
+
+ # do not install gconf schema
+ sed -i "/installSchema.*)$/d" setup.py
+
+ # python2 shebang
+ sed -i "s|bin/python$|&2|" `find . -name "*.py"`
+}
+
+build() {
+ cd $pkgname-$pkgver
+ python2 setup.py build
+}
+
+package() {
+ cd $pkgname-$pkgver
+ python2 setup.py install --root="$pkgdir/"
+
+ # gconf schema
+ install -Dm644 data/$pkgname.schemas \
+ "$pkgdir/usr/share/gconf/schemas/$pkgname.schemas"
+}
+
+# vim:set ts=2 sw=2 et:
diff --git a/pcr/gnoduino/gnoduino.install b/pcr/gnoduino/gnoduino.install
new file mode 100644
index 000000000..fd110bee7
--- /dev/null
+++ b/pcr/gnoduino/gnoduino.install
@@ -0,0 +1,23 @@
+pkgname=gnoduino
+
+post_install() {
+ usr/sbin/gconfpkg --install ${pkgname}
+ post_remove
+}
+
+pre_upgrade() {
+ pre_remove
+}
+
+post_upgrade() {
+ post_install
+}
+
+pre_remove() {
+ usr/sbin/gconfpkg --uninstall ${pkgname}
+}
+
+post_remove() {
+ gtk-update-icon-cache -q -t -f usr/share/icons/hicolor
+ update-desktop-database -q
+}
diff --git a/pcr/spyder/PKGBUILD b/pcr/spyder/PKGBUILD
deleted file mode 100644
index 1e9c456a1..000000000
--- a/pcr/spyder/PKGBUILD
+++ /dev/null
@@ -1,51 +0,0 @@
-# Contributor (Arch) : Muflone http://url.muflone.com/contacts
-# Contributor (Arch) : Francois Boulogne <fboulogne@april.org>
-# Contributor (Arch) : TDY <tdy@gmx.com>
-# Maintainer (Parabola) : Aurélien DESBRIÈRES <aurelien@hackers.camp>
-
-pkgname=spyder
-pkgver=2.2.5
-pkgrel=2
-pkgdesc='Scientific PYthon Development EnviRonment providing MATLAB-like features.'
-arch=('any')
-url='http://code.google.com/p/spyderlib/'
-license=('MIT')
-install="${pkgname}.install"
-depends=('python2-pyqt4' 'python2-pyflakes' 'desktop-file-utils' 'gtk-update-icon-cache' 'python2-pyzmq' 'python2-pygments')
-makedepends=('python2-sphinx' 'python2-setuptools')
-optdepends=('python2-pylint: powerful code analysis'
- 'ipython2: enhanced Python interpreter'
- 'python2-rope: editor code completion, calltips and go-to-definition'
- 'python2-sphinx: rich text help on the object inspector'
- 'python2-numpy: N-dimensional arrays'
- 'python2-scipy: signal/image processing'
- 'python2-psutil: memory/CPU usage in the status bar'
- 'python2-h5py: HDF5 support'
- 'python2-matplotlib: interactive 2D/3D data plotting'
- 'pep8-python2: real-time code style analysis'
- 'python2-sympy: symbolic mathematics for the IPython console')
-source=("http://spyderlib.googlecode.com/files/${pkgname}-${pkgver}.zip"
- "pylint.patch")
-md5sums=('1c9aa650dae9f883616e917803f8a3be'
- '3fe95915036634841b619670ad947e96')
-
-prepare() {
- patch -p0 < "pylint.patch"
-}
-
-build() {
- cd "${pkgname}-${pkgver}"
- python2 setup.py build
-}
-
-package() {
- cd "${pkgname}-${pkgver}"
- python2 setup.py install --prefix=/usr --root="${pkgdir}" --optimize=1
- # Install license file
- install -D -m644 "LICENSE" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
- # Install icon and desktop file
- install -D -m644 "scripts/${pkgname}.desktop" "${pkgdir}/usr/share/applications/${pkgname}.desktop"
- install -D -m644 "spyderlib/images/spyder.svg" "${pkgdir}/usr/share/icons/hicolor/scalable/apps/${pkgname}.svg"
- # Remove useless spyder_win_post_install script
- rm -f "${pkgdir}/usr/bin/spyder_win_post_install.py"
-}
diff --git a/pcr/spyder/pylint.patch b/pcr/spyder/pylint.patch
deleted file mode 100644
index faa1edcf1..000000000
--- a/pcr/spyder/pylint.patch
+++ /dev/null
@@ -1,28 +0,0 @@
-diff -Naur spyder-2.2.5/spyderplugins/widgets/pylintgui.py spyder-2.2.5-patched/spyderplugins/widgets/pylintgui.py
---- spyder-2.2.5/spyderplugins/widgets/pylintgui.py 2013-10-12 20:35:52.000000000 +0200
-+++ spyder-2.2.5-patched/spyderplugins/widgets/pylintgui.py 2013-11-12 00:42:22.809509805 +0100
-@@ -40,7 +40,7 @@
- _ = get_translation("p_pylint", dirname="spyderplugins")
-
-
--PYLINT_PATH = programs.find_program('pylint')
-+PYLINT_PATH = programs.find_program('pylint2')
-
-
- def get_pylint_version():
-@@ -48,13 +48,13 @@
- global PYLINT_PATH
- if PYLINT_PATH is None:
- return
-- process = subprocess.Popen(['pylint', '--version'],
-+ process = subprocess.Popen(['pylint2', '--version'],
- stdout=subprocess.PIPE, stderr=subprocess.PIPE,
- cwd=osp.dirname(PYLINT_PATH),
- shell=True if os.name == 'nt' else False)
- lines = to_unicode_from_fs(process.stdout.read()).splitlines()
- if lines:
-- match = re.match('(pylint|pylint-script.py) ([0-9\.]*)', lines[0])
-+ match = re.match('(pylint2|pylint-script.py) ([0-9\.]*)', lines[0])
- if match is not None:
- return match.groups()[1]
-
diff --git a/pcr/spyder/spyder.install b/pcr/spyder/spyder.install
deleted file mode 100644
index 62a045c59..000000000
--- a/pcr/spyder/spyder.install
+++ /dev/null
@@ -1,12 +0,0 @@
-post_install() {
- update-desktop-database -q
- gtk-update-icon-cache -q -f /usr/share/icons/hicolor
-}
-
-post_upgrade() {
- post_install
-}
-
-post_remove() {
- post_install
-}