summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorThomas Sarboni2015-06-14 12:27:30 +0200
committerThomas Sarboni2015-06-14 12:27:30 +0200
commit863c6698c2c8400f88667131baa28ebad3360af8 (patch)
treec67c33dc9b26e2b42d4ed370e2f592efbab82916
downloadaur-863c6698c2c8400f88667131baa28ebad3360af8.tar.gz
Initial import
-rw-r--r--.SRCINFO30
-rw-r--r--PKGBUILD68
-rw-r--r--_install.py.patch68
-rw-r--r--activestate.py.patch34
4 files changed, 200 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..01cf837cbb9
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,30 @@
+pkgbase = komodo-edit
+ pkgdesc = Free & Open-Source counterpart of ActiveState Komodo IDE - XUL based
+ pkgver = 9.1.0_15798
+ pkgrel = 2
+ url = http://www.activestate.com/komodo-edit
+ arch = i686
+ arch = x86_64
+ license = MPL
+ depends = dbus-glib
+ depends = glibc>=2.4
+ depends = libjpeg>=6.2
+ depends = gcc-libs
+ depends = gtk2
+ optdepends = xterm: can be used by komodo-toolbox
+ conflicts = komodoedit
+ conflicts = komodoedit-nightly
+ conflicts = komodoedit-beta
+ options = !strip
+ source = http://downloads.activestate.com/Komodo/releases/9.1.0/Komodo-Edit-9.1.0-15798-linux-x86_64.tar.gz
+ source = _install.py.patch
+ source = activestate.py.patch
+ md5sums = 1843095021f103574fd2ab2ae831cdd9
+ md5sums = 3f68d40c80d1baba291c3cd57d18f6c9
+ md5sums = ac74c1495058f1b7429f03d95fcde75c
+ sha256sums = 14a3e2220ec7bcdbc3422c423d90d06140043cefad7f52411c452dd774d3281f
+ sha256sums = 98177ee92e13036baa0a4f61ef398c0e23ab5d250cf7aa1b1c5a557efaaec3a8
+ sha256sums = c68d7e94955e0f7b32cf3863136891d6441d9dd3a6346481b911d2c250cf32e9
+
+pkgname = komodo-edit
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..348f651c542
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,68 @@
+# Maintainer: max-k <max-k@post.com>
+# Contributor: max-k <max-k@post.com>
+
+if [ $(uname -m) = "x86_64" ] ; then
+_arch="x86_64"
+else
+_arch="x86"
+fi
+
+_major="9.1.0"
+_minor=15798
+
+pkgname="komodo-edit"
+_bigname="Komodo-Edit"
+pkgver="${_major}_${_minor}"
+pkgrel=2
+pkgdesc="Free & Open-Source counterpart of ActiveState Komodo IDE - XUL based"
+arch=(i686 x86_64)
+url="http://www.activestate.com/komodo-edit"
+license=('MPL')
+depends=('dbus-glib' 'glibc>=2.4' 'libjpeg>=6.2' 'gcc-libs' 'gtk2')
+optdepends=('xterm: can be used by komodo-toolbox')
+conflicts=('komodoedit' 'komodoedit-nightly' 'komodoedit-beta')
+options=('!strip')
+
+source=("http://downloads.activestate.com/Komodo/releases/${_major}/${_bigname}-${_major}-${_minor}-linux-${_arch}.tar.gz"
+ "_install.py.patch" "activestate.py.patch")
+
+if [ $_arch == "x86_64" ] ; then
+ md5sums=('1843095021f103574fd2ab2ae831cdd9')
+ sha256sums=('14a3e2220ec7bcdbc3422c423d90d06140043cefad7f52411c452dd774d3281f')
+else
+ md5sums=('b808e0e3df90401e5d10525368db1c6c')
+ sha256sums=('27854d1cf60fc92bf36f2c780ca998918b0f76eb386f53206528737fae305c98')
+fi
+md5sums[1]='3f68d40c80d1baba291c3cd57d18f6c9'
+sha256sums[1]='98177ee92e13036baa0a4f61ef398c0e23ab5d250cf7aa1b1c5a557efaaec3a8'
+md5sums[2]='ac74c1495058f1b7429f03d95fcde75c'
+sha256sums[2]='c68d7e94955e0f7b32cf3863136891d6441d9dd3a6346481b911d2c250cf32e9'
+
+prepare() {
+ cd ${srcdir}/${_bigname}-${_major}-${_minor}-linux-${_arch}
+ sed -i "s/__VERSION__/${_major}-${minor}/" ${srcdir}/_install.py.patch
+ sed -i "s/__VERSION__/${_major}-${minor}/" ${srcdir}/activestate.py.patch
+ if [ $_arch == "x86_64" ] ; then
+ sed -i "s/__ARCH__/x86_64/" ${srcdir}/_install.py.patch
+ sed -i "s/__ARCH__/x86_64/" ${srcdir}/activestate.py.patch
+ else
+ sed -i "s/__ARCH__/x86/" ${srcdir}/_install.py.patch
+ sed -i "s/__ARCH__/x86/" ${srcdir}/activestate.py.patch
+ fi
+ patch -p0 -i ${srcdir}/_install.py.patch support/_install.py
+ patch -p0 -i ${srcdir}/activestate.py.patch INSTALLDIR/lib/python/lib/python*.*/activestate.py
+}
+
+build() {
+ echo "" > /dev/null
+}
+
+package() {
+ cd ${srcdir}/${_bigname}-${_major}-${_minor}-linux-${_arch}
+ ./install.sh -v -s -I ${pkgdir}/opt/${pkgname} --dest-dir /opt/${pkgname} 2>&1 > /dev/null
+ _dfile=${pkgdir}/opt/${pkgname}/share/desktop/${pkgname}-${_major:0:1}.desktop
+ sed -i "s#${pkgdir}##" ${_dfile}
+ install -Dm644 ${_dfile} ${pkgdir}/usr/share/applications/${pkgname}.desktop
+ install -d ${pkgdir}/usr/bin
+ ln -sf /opt/komodo-edit/bin/komodo ${pkgdir}/usr/bin/komodo
+}
diff --git a/_install.py.patch b/_install.py.patch
new file mode 100644
index 00000000000..b82cbe8ca4a
--- /dev/null
+++ b/_install.py.patch
@@ -0,0 +1,68 @@
+--- Komodo-Edit-__VERSION__-linux-__ARCH__/support/_install.py2013-10-17 05:13: 50.000000000 +0200
++++ src/Komodo-Edit-__VERSION__-linux-__ARCH__/support/_install.py2013-11-18 18:39:56.767640864 +0100
+@@ -349,10 +349,7 @@
+ log.warn("unexpected error creating fallback .desktop file "
+ "'%s': %s", fallbackPath, ex2)
+ else:
+- log.warn("did not install desktop shortcut: %s "
+- "(a Komodo .desktop file has been created in '%s' "
+- "that you may install manually)",
+- ex, fallbackPath)
++ pass
+ else:
+ log.info("'Komodo Edit 8' desktop shortcut created at '%s'",
+ shortcutPath)
+@@ -440,19 +437,23 @@
+ absInstallDir = abspath(normInstallDir)
+ pyInstallDir = join(absInstallDir, "lib", "python")
+ mozInstallDir = join(absInstallDir, "lib", "mozilla")
+- log.info("Installing ActiveState Komodo to '%s'...", normInstallDir)
++ print("Installing ActiveState Komodo to '%s'..." % normInstallDir)
+ _validateInstallDir(absInstallDir)
+ log.debug("redirect userDataDir to '%s'", userDataDir)
+ log.debug("user environment: %s", pprint.pformat(dict(os.environ)))
+
+ # "destDir", if defined, is the ultimate final install location. We
+ # want to relocate to that dir.
++ absRelocDir = absInstallDir
++ pyRelocDir = pyInstallDir
+ if destDir is None:
+- absRelocDir = absInstallDir
+- pyRelocDir = pyInstallDir
++ absRelocDestDir = absInstallDir
++ pyRelocDestDir = pyInstallDir
+ else:
+- absRelocDir = abspath(normpath(expanduser(destDir)))
+- pyRelocDir = join(absRelocDir, "lib", "python")
++ absRelocDestDir = abspath(normpath(expanduser(destDir)))
++ pyRelocDestDir = join(absRelocDestDir, "lib", "python")
++
++ print("Python relocation directory : '%s'" % pyRelocDestDir)
+
+ # copy the entire "Komodo" tree to the installDir
+ if not exists(absInstallDir):
+@@ -466,7 +467,7 @@
+
+ log.debug("Preparing internal Python...")
+ import activestate
+- activestate.relocate_python(pyRelocDir,
++ activestate.relocate_python(pyRelocDir, dest_prefix=pyRelocDestDir,
+ verbose=log.isEnabledFor(logging.DEBUG))
+
+ # Make sure that we use symlinks for libpython.so, bug 98337
+@@ -696,6 +697,7 @@
+ suppressShortcut = True
+ elif opt in ("--dest-dir",):
+ destDir = optarg
++ print("Opt destDir = %s" % destDir)
+ if destDir and not installDir:
+ log.error("must use -I|--install-dir to use --dest-dir")
+ return 1
+@@ -704,6 +706,7 @@
+ if installDir is None:
+ interactiveInstall(suppressShortcut)
+ else:
++ print("Installation destDir = %s" % destDir)
+ install(installDir, suppressShortcut, destDir=destDir)
+ except (EnvironmentError, Error), ex:
+ log.error(str(ex))
diff --git a/activestate.py.patch b/activestate.py.patch
new file mode 100644
index 00000000000..28a4ea2d1bb
--- /dev/null
+++ b/activestate.py.patch
@@ -0,0 +1,34 @@
+--- Komodo-Edit-__VERSION__-linux-__ARCH__/INSTALLDIR/lib/python/lib/python2.7/activestate.py2013-08-15 00:21:03.000000000 +0200
++++ src/Komodo-Edit-__VERSION__-linux-__ARCH__/INSTALLDIR/lib/python/lib/python2.7/activestate.py2013-11-18 18:27:07.902501347 +0100
+@@ -182,7 +182,7 @@
+ os .chmod(path, perm) # restore permissions
+
+
+-def relocate_python(install_prefix, verbose=False):
++def relocate_python(install_prefix, dest_prefix=None, verbose=False):
+ """Relocate this Python installation.
+
+ "Relocation" involves updating hardcoded shebang lines in Python scripts
+@@ -210,16 +210,19 @@
+ % (install_prefix, len(install_prefix),
+ shortest_original_prefix_length))
+
+- log("relocate this Python to '%s'" % install_prefix)
++ if dest_prefix is None:
++ dest_prefix = install_prefix
++
++ print("relocate this Python to '%s'" % dest_prefix)
+ for prefix in prefixes:
+- if prefix == install_prefix:
++ if prefix == dest_prefix:
+ continue
+ for dirpath, dirnames, filenames in os.walk(install_prefix):
+ for filename in filenames:
+ if splitext(filename)[1] in (".pyo", ".pyc"):
+ continue
+ _relocate_path(join(dirpath, filename),
+- prefix, install_prefix, log)
++ prefix, dest_prefix, log)
+
+
+ #---- mainline