summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDiego Elio Pettenò <flameeyes@gentoo.org>2009-08-29 23:41:38 +0000
committerDiego Elio Pettenò <flameeyes@gentoo.org>2009-08-29 23:41:38 +0000
commitda4588a960c308253b57794b27e3be5b1ea6eecf (patch)
treece1deb95c995c18f917054dc8a3d7b0938b08218 /sci-electronics
parentSet SUPPORT_PYTHON_ABIS. (diff)
downloadgentoo-2-da4588a960c308253b57794b27e3be5b1ea6eecf.tar.gz
gentoo-2-da4588a960c308253b57794b27e3be5b1ea6eecf.tar.bz2
gentoo-2-da4588a960c308253b57794b27e3be5b1ea6eecf.zip
Fix ebuild to not install in /usr/local. Thanks to Davide Pesavento in bug #282908.
(Portage version: 2.2_rc40/cvs/Linux x86_64)
Diffstat (limited to 'sci-electronics')
-rw-r--r--sci-electronics/qelectrotech/ChangeLog10
-rw-r--r--sci-electronics/qelectrotech/files/qelectrotech-0.2-fix-paths.patch48
-rw-r--r--sci-electronics/qelectrotech/qelectrotech-0.2-r1.ebuild (renamed from sci-electronics/qelectrotech/qelectrotech-0.2.ebuild)12
3 files changed, 64 insertions, 6 deletions
diff --git a/sci-electronics/qelectrotech/ChangeLog b/sci-electronics/qelectrotech/ChangeLog
index ca5e1453c8f3..ef95a9eb144b 100644
--- a/sci-electronics/qelectrotech/ChangeLog
+++ b/sci-electronics/qelectrotech/ChangeLog
@@ -1,6 +1,14 @@
# ChangeLog for sci-electronics/qelectrotech
# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/sci-electronics/qelectrotech/ChangeLog,v 1.1 2009/06/28 15:07:48 hwoarang Exp $
+# $Header: /var/cvsroot/gentoo-x86/sci-electronics/qelectrotech/ChangeLog,v 1.2 2009/08/29 23:41:38 flameeyes Exp $
+
+*qelectrotech-0.2-r1 (29 Aug 2009)
+
+ 29 Aug 2009; Diego E. Pettenò <flameeyes@gentoo.org>
+ -qelectrotech-0.2.ebuild, +qelectrotech-0.2-r1.ebuild,
+ +files/qelectrotech-0.2-fix-paths.patch:
+ Fix ebuild to not install in /usr/local. Thanks to Davide Pesavento in bug
+ #282908.
*qelectrotech-0.2 (28 Jun 2009)
diff --git a/sci-electronics/qelectrotech/files/qelectrotech-0.2-fix-paths.patch b/sci-electronics/qelectrotech/files/qelectrotech-0.2-fix-paths.patch
new file mode 100644
index 000000000000..7e34131becf2
--- /dev/null
+++ b/sci-electronics/qelectrotech/files/qelectrotech-0.2-fix-paths.patch
@@ -0,0 +1,48 @@
+diff -Naur qelectrotech-0.2-src~orig/qelectrotech.pro qelectrotech-0.2-src/qelectrotech.pro
+--- qelectrotech-0.2-src~orig/qelectrotech.pro 2009-08-30 01:18:08.000000000 +0200
++++ qelectrotech-0.2-src/qelectrotech.pro 2009-08-30 01:30:29.000000000 +0200
+@@ -5,19 +5,19 @@
+ # Chemins utilises pour la compilation et l'installation de QET
+ unix {
+ # Chemins UNIX
+- COMPIL_PREFIX = '/usr/local/'
+- INSTALL_PREFIX = '/usr/local/'
++ COMPIL_PREFIX = '/usr/'
++ INSTALL_PREFIX = '/usr/'
+ QET_BINARY_PATH = 'bin/'
+ QET_COMMON_COLLECTION_PATH = 'share/qelectrotech/elements/'
+ QET_LANG_PATH = 'share/qelectrotech/lang/'
+ QET_EXAMPLES_PATH = 'share/qelectrotech/examples/'
+ QET_LICENSE_PATH = 'doc/qelectrotech/'
+- QET_MIME_XML_PATH = '../share/mime/application/'
+- QET_MIME_DESKTOP_PATH = '../share/mimelnk/application/'
+- QET_MIME_PACKAGE_PATH = '../share/mime/packages/'
++ QET_MIME_XML_PATH = 'share/mime/application/'
++ QET_MIME_DESKTOP_PATH = 'share/mimelnk/application/'
++ QET_MIME_PACKAGE_PATH = 'share/mime/packages/'
+ QET_DESKTOP_PATH = 'share/applications/'
+ QET_ICONS_PATH = 'share/icons/hicolor/'
+- QET_MAN_PATH = 'man/'
++ QET_MAN_PATH = 'share/man/'
+ }
+ win32 {
+ # Chemins Windows
+@@ -94,9 +94,6 @@
+ examples.path = $$join(INSTALL_PREFIX,,,$${QET_EXAMPLES_PATH})
+ examples.files = examples/*
+
+-copyright.path = $$join(INSTALL_PREFIX,,,$${QET_LICENSE_PATH})
+-copyright.files = LICENSE ELEMENTS.LICENSE CREDIT README ChangeLog
+-
+ mime_xml.path = $$join(INSTALL_PREFIX,,,$${QET_MIME_XML_PATH})
+ mime_xml.files = misc/x-qet-*.xml
+
+@@ -123,7 +120,7 @@
+ man.extra = sh man/compress_man_pages.sh
+
+ # L'installation comprend la copie du binaire, des elements, des fichiers de langue et du fichier LICENSE
+-INSTALLS += target elements lang copyright
++INSTALLS += target elements lang
+ # Sous Unix, on installe egalement l'icone, un fichier .desktop, des fichiers mime et les pages de manuel
+ unix {
+ INSTALLS += desktop mime_xml mime_desktop mime_package icons man examples
diff --git a/sci-electronics/qelectrotech/qelectrotech-0.2.ebuild b/sci-electronics/qelectrotech/qelectrotech-0.2-r1.ebuild
index 5af8b7fc5d09..346fa506aac2 100644
--- a/sci-electronics/qelectrotech/qelectrotech-0.2.ebuild
+++ b/sci-electronics/qelectrotech/qelectrotech-0.2-r1.ebuild
@@ -1,6 +1,6 @@
# Copyright 1999-2009 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/sci-electronics/qelectrotech/qelectrotech-0.2.ebuild,v 1.1 2009/06/28 15:07:48 hwoarang Exp $
+# $Header: /var/cvsroot/gentoo-x86/sci-electronics/qelectrotech/qelectrotech-0.2-r1.ebuild,v 1.1 2009/08/29 23:41:38 flameeyes Exp $
EAPI="2"
@@ -17,18 +17,20 @@ SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="debug doc"
-RDEPEND="x11-libs/qt-gui:4[debug?]
- x11-libs/qt-svg:4[debug?]"
+RDEPEND="x11-libs/qt-gui:4
+ x11-libs/qt-svg:4"
DEPEND="${RDEPEND}
doc? ( app-doc/doxygen )"
S="${WORKDIR}"/${MY_P}
-src_configure(){
+PATCHES=( "${FILESDIR}/${P}-fix-paths.patch" )
+
+src_configure() {
eqmake4
}
-src_install(){
+src_install() {
emake INSTALL_ROOT="${D}" install || die "emake install failed"
dodoc CREDIT ChangeLog README || die "dodoc failed"
if use doc; then