diff options
author | charIes17 <charles17@arcor.de> | 2017-07-22 13:05:14 +0200 |
---|---|---|
committer | Lars Wendler <polynomial-c@gentoo.org> | 2017-07-27 10:08:04 +0200 |
commit | e149e15569d118b6726b545bfba07cf3177af626 (patch) | |
tree | 8437359ec3bd9a5d8e5bf7e5c282530d11c6e335 /x11-wm/lumina | |
parent | x11-wm/lumina: Remove old (failing with gcc-6) (diff) | |
download | gentoo-e149e15569d118b6726b545bfba07cf3177af626.tar.gz gentoo-e149e15569d118b6726b545bfba07cf3177af626.tar.bz2 gentoo-e149e15569d118b6726b545bfba07cf3177af626.zip |
x11-wm/lumina: Move stuff from eqmake5 to patch for upstream
Upstream has a configuration file src-qt5/OS-detect.pri used
for distribution specific settings.
The idea of this PR is to move as much as possible from
the ebuild to a patch for that upstream config file.
Package-Manager: Portage-2.3.6, Repoman-2.3.1
Closes: https://github.com/gentoo/gentoo/pull/5167
Diffstat (limited to 'x11-wm/lumina')
-rw-r--r-- | x11-wm/lumina/files/1.3.0-OS-detect.patch | 21 | ||||
-rw-r--r-- | x11-wm/lumina/lumina-1.3.0_p1.ebuild | 5 | ||||
-rw-r--r-- | x11-wm/lumina/lumina-9999.ebuild | 6 |
3 files changed, 16 insertions, 16 deletions
diff --git a/x11-wm/lumina/files/1.3.0-OS-detect.patch b/x11-wm/lumina/files/1.3.0-OS-detect.patch index e1b71b2a789a..48a2076f3aaf 100644 --- a/x11-wm/lumina/files/1.3.0-OS-detect.patch +++ b/x11-wm/lumina/files/1.3.0-OS-detect.patch @@ -1,11 +1,14 @@ --- ./src-qt5/OS-detect.pri +++ ./src-qt5/OS-detect.pri -@@ -94,7 +94,7 @@ - isEmpty(L_SHAREDIR){ L_SHAREDIR = $${PREFIX}/share } - isEmpty(L_INCLUDEDIR){ L_INCLUDEDIR = $${PREFIX}/include } - isEmpty(L_SESSDIR){ L_SESSDIR = $${L_SHAREDIR}/xsessions } -- isEmpty(L_MANDIR){ L_MANDIR = $${PREFIX}/man } -+ isEmpty(L_MANDIR){ L_MANDIR = $${PREFIX}/share/man } - isEmpty(LRELEASE){ LRELEASE = $$[QT_INSTALL_BINS]/lrelease } - isEmpty(MAN_ZIP){ MAN_ZIP = "gzip -c" } - !exists(LRELEASE){ NO_I18N=true } #translations unavailable +@@ -76,6 +76,11 @@ + equals(LINUX_DISTRO,"Fedora"){ + isEmpty(L_ETCDIR){ L_ETCDIR=/etc } + } ++ equals(LINUX_DISTRO,"Gentoo"){ ++ isEmpty(L_BINDIR){ L_BINDIR = $${PREFIX}/bin } ++ isEmpty(L_ETCDIR){ L_ETCDIR = $${PREFIX}/../etc } ++ isEmpty(L_MANDIR){ L_MANDIR = $${PREFIX}/share/man } ++ } + }else{ + OS="Unknown"; + } diff --git a/x11-wm/lumina/lumina-1.3.0_p1.ebuild b/x11-wm/lumina/lumina-1.3.0_p1.ebuild index deae92b25005..794daf6eea80 100644 --- a/x11-wm/lumina/lumina-1.3.0_p1.ebuild +++ b/x11-wm/lumina/lumina-1.3.0_p1.ebuild @@ -57,9 +57,8 @@ src_prepare(){ } src_configure(){ - eqmake5 PREFIX="${EPREFIX}/usr" L_BINDIR="${EPREFIX}/usr/bin" \ - L_ETCDIR="${EPREFIX}/etc" L_LIBDIR="${EPREFIX}/usr/$(get_libdir)" \ - LIBPREFIX="${EPREFIX}/usr/$(get_libdir)" DESTDIR="${D}" CONFIG+=WITH_I18N QMAKE_CFLAGS_ISYSTEM= + eqmake5 PREFIX="${EPREFIX}/usr" LIBPREFIX="${EPREFIX}/usr/$(get_libdir)" \ + DESTDIR="${D}" CONFIG+=WITH_I18N QMAKE_CFLAGS_ISYSTEM= } src_install(){ diff --git a/x11-wm/lumina/lumina-9999.ebuild b/x11-wm/lumina/lumina-9999.ebuild index 63c5176b1f2b..11c8d155760b 100644 --- a/x11-wm/lumina/lumina-9999.ebuild +++ b/x11-wm/lumina/lumina-9999.ebuild @@ -44,7 +44,6 @@ S="${WORKDIR}/${P/_/-}" PATCHES=( "${FILESDIR}/1.2.0-desktop-files.patch" - "${FILESDIR}/1.3.0-OS-detect.patch" ) src_prepare(){ @@ -57,9 +56,8 @@ src_prepare(){ } src_configure(){ - eqmake5 PREFIX="${EPREFIX}/usr" L_BINDIR="${EPREFIX}/usr/bin" \ - L_ETCDIR="${EPREFIX}/etc" L_LIBDIR="${EPREFIX}/usr/$(get_libdir)" \ - LIBPREFIX="${EPREFIX}/usr/$(get_libdir)" DESTDIR="${D}" CONFIG+=WITH_I18N QMAKE_CFLAGS_ISYSTEM= + eqmake5 PREFIX="${EPREFIX}/usr" LIBPREFIX="${EPREFIX}/usr/$(get_libdir)" \ + DESTDIR="${D}" CONFIG+=WITH_I18N QMAKE_CFLAGS_ISYSTEM= } src_install(){ |