aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDror Levin <spatz@psybear.com>2009-05-30 17:12:10 +0300
committerDror Levin <spatz@psybear.com>2009-05-30 17:12:10 +0300
commit69571c062a74e66c11b437ff560584e8770b7910 (patch)
tree304d254e438732ecee88121e8e0b5deaa31abd29 /app-arch
parentApply license patch to the rest of PyQt4 ebuilds (diff)
downloadqt-69571c062a74e66c11b437ff560584e8770b7910.tar.gz
qt-69571c062a74e66c11b437ff560584e8770b7910.tar.bz2
qt-69571c062a74e66c11b437ff560584e8770b7910.zip
q7z: new ebuild, bump in-tree package to 0.8.0
Diffstat (limited to 'app-arch')
-rw-r--r--app-arch/q7z/ChangeLog13
-rw-r--r--app-arch/q7z/Manifest8
-rw-r--r--app-arch/q7z/files/0.8.0-fix_7z_flags.patch21
-rw-r--r--app-arch/q7z/files/0.8.0-fix_imports.patch24
-rw-r--r--app-arch/q7z/files/0.8.0-fix_paths.patch61
-rw-r--r--app-arch/q7z/files/0.8.0-init.py1
-rw-r--r--app-arch/q7z/metadata.xml5
-rw-r--r--app-arch/q7z/q7z-0.8.0.ebuild64
8 files changed, 197 insertions, 0 deletions
diff --git a/app-arch/q7z/ChangeLog b/app-arch/q7z/ChangeLog
new file mode 100644
index 00000000..88f10171
--- /dev/null
+++ b/app-arch/q7z/ChangeLog
@@ -0,0 +1,13 @@
+# ChangeLog for app-arch/q7z
+# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2
+# $Header: $
+
+*q7z-0.8.0 (30 May 2009)
+
+ 30 May 2009; Dror Levin <spatz@gentoo.org>
+ +files/0.8.0-fix_7z_flags.patch, +q7z-0.8.0.ebuild,
+ +files/0.8.0-fix_imports.patch, +files/0.8.0-fix_paths.patch,
+ +files/0.8.0-init.py:
+ Version bump of in-tree package. Modules are now installed in the python
+ site-packages directory and the binary is called 'q7z'.
+
diff --git a/app-arch/q7z/Manifest b/app-arch/q7z/Manifest
new file mode 100644
index 00000000..0da2cf0e
--- /dev/null
+++ b/app-arch/q7z/Manifest
@@ -0,0 +1,8 @@
+AUX 0.8.0-fix_7z_flags.patch 635 RMD160 81b9e6272ebe127d2f7fd8a314584bb3799b8577 SHA1 32c3c2578ba084afc743f3906f160f8bb4956e27 SHA256 151efdfa15ea39ed95802f6ef734e33ce489f1ce0e1b19a0c63b9c4d808f8110
+AUX 0.8.0-fix_imports.patch 532 RMD160 f29f4e82d7a95670eb7acf98b2a6efe4f90ad7a4 SHA1 3afcb18366ecfc2ee6ecc154c8132ff22efae2ad SHA256 31fbe456fe79fdba7141ea4a5a11b22ef2e1196620c3bc1f1924a4552773a6c4
+AUX 0.8.0-fix_paths.patch 2283 RMD160 ea4e7a361298165decae8beb213f70c5770e1a49 SHA1 7404ad156993a5cec5d5cb2e5dff9813f423b984 SHA256 a6e04c18c57249367d5ea4fd7f1adcbb83c1f018fb250b3ab2c24a67165e5834
+AUX 0.8.0-init.py 1 RMD160 c0da025038ed83c687ddc430da9846ecb97f3998 SHA1 adc83b19e793491b1c6ea0fd8b46cd9f32e592fc SHA256 01ba4719c80b6fe911b091a7c05124b64eeece964e09c058ef8f9805daca546b
+DIST Q7Z-0.8.0.tar.bz2 177144 RMD160 63b4506a832e45cc98c2d041b5f9a26dce4aed18 SHA1 632a68d50b9ec9d1e1b2b796d0c812bd14dec609 SHA256 3dd799028b4eac2d6d2654d52824363b1c1e814c8cbf0a764d29b948cf8a6678
+EBUILD q7z-0.8.0.ebuild 1168 RMD160 50b4677fb6374be35e4057acfcd83f9753c34e75 SHA1 dbc761be4a687667a8f7217e01cd9e841afbeb82 SHA256 33019d7468ee23a399b24dcaaebebcd5d3a316a4000a06eea356b11f0f538c7b
+MISC ChangeLog 460 RMD160 14927002447ca0b5d8d07b65048d38556e35b9e6 SHA1 a8e766d99f7e14330727fb07b6dacbf2b6819c95 SHA256 548f2957e00deb60b1ecaf865e21cb740a6bf21104545ccb2dba6c68d83760d6
+MISC metadata.xml 156 RMD160 2c307fe3d7f514f10f158344b51114121632f411 SHA1 1b61305bd125f03b40ed85c17989140608e1efee SHA256 2bc85ad7339ae0191c26e435f2da777058779a7ebf73d14658a6ea7bfcec01b2
diff --git a/app-arch/q7z/files/0.8.0-fix_7z_flags.patch b/app-arch/q7z/files/0.8.0-fix_7z_flags.patch
new file mode 100644
index 00000000..bc6f2140
--- /dev/null
+++ b/app-arch/q7z/files/0.8.0-fix_7z_flags.patch
@@ -0,0 +1,21 @@
+diff -ur Q7Z-orig/Source/Thread.py Q7Z/Source/Thread.py
+--- Q7Z-orig/Source/Thread.py 2009-04-23 10:12:24.000000000 +0300
++++ Q7Z/Source/Thread.py 2009-05-29 03:46:02.541667405 +0300
+@@ -220,7 +220,7 @@
+ sExt = ".exe"
+
+ # Recursive
+- slCmdArgs.append( "-r" )
++ #slCmdArgs.append( "-r" )
+
+ # Exclusions
+ slWildcards = QtCore.QStringList( Settings.User.Syntax.sExclusions.split( ' ' ) )
+@@ -549,7 +549,7 @@
+ slCmdArgs.append( "-y" )
+
+ # Recursive
+- slCmdArgs.append( "-r" )
++ #slCmdArgs.append( "-r" )
+
+ # Exclusions
+ slWildcards = QtCore.QStringList( Settings.User.Syntax.sExclusions.split( ' ' ) )
diff --git a/app-arch/q7z/files/0.8.0-fix_imports.patch b/app-arch/q7z/files/0.8.0-fix_imports.patch
new file mode 100644
index 00000000..a7d06b53
--- /dev/null
+++ b/app-arch/q7z/files/0.8.0-fix_imports.patch
@@ -0,0 +1,24 @@
+diff -ur Q7Z-orig/Bin/Q7Z.pyw Q7Z/Bin/Q7Z.pyw
+--- Q7Z-orig/Bin/Q7Z.pyw 2008-06-29 03:11:21.000000000 +0300
++++ Q7Z/Bin/Q7Z.pyw 2009-05-30 00:29:09.712445008 +0300
+@@ -11,7 +11,7 @@
+ ### Imports
+
+ # Q7Z
+-import Main
++import q7z.Main as Main
+
+
+ ### Execution
+diff -ur Q7Z-orig/Source/Q7Z.pyw Q7Z/Source/Q7Z.pyw
+--- Q7Z-orig/Source/Q7Z.pyw 2008-06-29 03:11:21.000000000 +0300
++++ Q7Z/Source/Q7Z.pyw 2009-05-30 00:29:09.712445008 +0300
+@@ -11,7 +11,7 @@
+ ### Imports
+
+ # Q7Z
+-import Main
++import q7z.Main as Main
+
+
+ ### Execution
diff --git a/app-arch/q7z/files/0.8.0-fix_paths.patch b/app-arch/q7z/files/0.8.0-fix_paths.patch
new file mode 100644
index 00000000..150a2184
--- /dev/null
+++ b/app-arch/q7z/files/0.8.0-fix_paths.patch
@@ -0,0 +1,61 @@
+diff -ur Q7Z-orig/Source/Settings.py Q7Z/Source/Settings.py
+--- Q7Z-orig/Source/Settings.py 2009-04-23 01:38:10.000000000 +0300
++++ Q7Z/Source/Settings.py 2009-05-30 00:42:50.391474549 +0300
+@@ -39,7 +39,7 @@
+
+ # Application
+ Application = QtCore.QObject()
+-Application.sName = "Q7Z"
++Application.sName = "q7z"
+ Application.sVersion = QtCore.QString( "0.8.0" )
+ Application.sDomain = "k7z.sourceforge.net"
+ Application.sCurrent = "/7Z/" + Application.sName + "/Current.txt"
+@@ -98,10 +98,10 @@
+ Path = QtCore.QObject()
+ Path.sSep = QtCore.QString( QtCore.QDir.separator() )
+ Path.App = QtCore.QObject()
+-Path.App.sPrefix = ""
++Path.App.sPrefix = "/usr/share/" + Application.sName
+ Path.App.sSBin = ""
+-Path.App.sInstall = "/share/" + Application.sName
+-Path.App.sConfig = Env.sHome + '/.config/' + Author.sName + Path.sSep + Application.sName + Path.sSep
++Path.App.sInstall = ""
++Path.App.sConfig = Path.App.sPrefix
+ Path.KDE = QtCore.QObject()
+ Path.KDE.sAutoStart = ""
+ Path.KDE.sConfig = ""
+@@ -270,20 +270,20 @@
+ # Misc
+ Path.KDE.sAutoStart = Path.KDE.sLocalPrefix + "/Autostart/"
+
+- # Installation
+- # KDE
+- if QtCore.QFile.exists( Path.Sys.sPrefix + Path.App.sInstall + "/Source/" ) :
+- Path.App.sPrefix = Path.Sys.sPrefix
+- Path.App.sSBin = Path.App.sPrefix + "/sbin"
+- # User
+- elif QtCore.QFile.exists( Path.Local.sPrefix + Path.App.sInstall + "/Source/" ) :
+- Path.App.sPrefix = Path.Local.sPrefix
+- Path.App.sSBin = Path.App.sPrefix + "/sbin"
+- # Local
+- else :
+- Path.App.sPrefix = os.path.realpath( os.path.dirname( __file__ ) ) + "/../"
+- Path.App.sSBin = Path.App.sPrefix + "/Bin"
+- Path.App.sInstall = ""
++# # Installation
++# # KDE
++# if QtCore.QFile.exists( Path.Sys.sPrefix + Path.App.sInstall + "/Source/" ) :
++# Path.App.sPrefix = Path.Sys.sPrefix
++# Path.App.sSBin = Path.App.sPrefix + "/sbin"
++# # User
++# elif QtCore.QFile.exists( Path.Local.sPrefix + Path.App.sInstall + "/Source/" ) :
++# Path.App.sPrefix = Path.Local.sPrefix
++# Path.App.sSBin = Path.App.sPrefix + "/sbin"
++# # Local
++# else :
++# Path.App.sPrefix = os.path.realpath( os.path.dirname( __file__ ) ) + "/../"
++# Path.App.sSBin = Path.App.sPrefix + "/Bin"
++# Path.App.sInstall = ""
+
+ # Proxy
+ if Env.sProxy != "" :
diff --git a/app-arch/q7z/files/0.8.0-init.py b/app-arch/q7z/files/0.8.0-init.py
new file mode 100644
index 00000000..8b137891
--- /dev/null
+++ b/app-arch/q7z/files/0.8.0-init.py
@@ -0,0 +1 @@
+
diff --git a/app-arch/q7z/metadata.xml b/app-arch/q7z/metadata.xml
new file mode 100644
index 00000000..ab02f994
--- /dev/null
+++ b/app-arch/q7z/metadata.xml
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <herd>qt</herd>
+</pkgmetadata>
diff --git a/app-arch/q7z/q7z-0.8.0.ebuild b/app-arch/q7z/q7z-0.8.0.ebuild
new file mode 100644
index 00000000..409f8233
--- /dev/null
+++ b/app-arch/q7z/q7z-0.8.0.ebuild
@@ -0,0 +1,64 @@
+# Copyright 1999-2009 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+EAPI="2"
+
+NEED_PYTHON="2.5"
+inherit eutils python
+
+MY_PN="Q7Z"
+
+DESCRIPTION="A GUI frontend for p7zip"
+HOMEPAGE="http://code.google.com/p/k7z/"
+SRC_URI="http://k7z.googlecode.com/files/${MY_PN}-${PV}.tar.bz2"
+
+LICENSE="GPL-3"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+RESTRICT="test"
+
+DEPEND="app-arch/p7zip
+ dev-python/PyQt4"
+RDEPEND="${DEPEND}"
+
+S="${WORKDIR}/${MY_PN}/Build"
+
+src_prepare() {
+ cd ..
+ epatch "${FILESDIR}/${PV}-fix_paths.patch"
+ epatch "${FILESDIR}/${PV}-fix_7z_flags.patch"
+ epatch "${FILESDIR}/${PV}-fix_imports.patch"
+
+ cd Source
+ mv "${MY_PN}.pyw" "${PN}.pyw"
+}
+
+src_install() {
+ python_version
+
+ cd ..
+
+ insinto "$(python_get_sitedir)/${PN}"
+ doins Source/*.py
+ newins "${FILESDIR}/${PV}-init.py" __init__.py
+
+ insinto "/usr/share/${PN}/Options"
+ doins Options/*
+ insinto "/usr/share/${PN}/Profiles"
+ doins Desktop/Profiles/*
+
+ dobin "Source/${PN}.pyw"
+ dosym "/usr/bin/${PN}.pyw" "/usr/bin/${PN}"
+}
+
+pkg_postinst() {
+ python_version
+ python_mod_optimize "$(python_get_sitedir)/${PN}"
+}
+
+pkg_postrm() {
+ python_mod_cleanup
+}