Live ebuilds: Cleanup and EAPI7 bump of tdelibs and tqt.

Also fix the building segfault, caused by building without tdehwlib.

Use of hwlib only pulls in additional dependencies at the moment.

Signed-off-by: Chris <xchrisx@uber.space>
pull/22/head
Chris 4 years ago committed by TDE Gitea
parent 3de8a3c7c5
commit 355b84074a

@ -3,26 +3,24 @@
# $Id$ # $Id$
EAPI=7 EAPI=7
inherit eutils git-r3 flag-o-matic toolchain-funcs inherit eutils git-r3 toolchain-funcs
SRCTYPE="free" SRCTYPE="free"
DESCRIPTION="Trinity's Qt toolkit fork." DESCRIPTION="Trinity's Qt toolkit fork."
HOMEPAGE="http://trinitydesktop.org/" HOMEPAGE="http://trinitydesktop.org/"
#SRC_URI="http://www.mirrorservice.org/sites/trinitydesktop.org/trinity/releases/R${PV}/main/dependencies/tqt3-trinity-${PV}.tar.xz"
EGIT_REPO_URI="https://mirror.git.trinitydesktop.org/gitea/TDE/tqt3" EGIT_REPO_URI="https://mirror.git.trinitydesktop.org/gitea/TDE/tqt3"
LICENSE="|| ( GPL-2 GPL-3 )" LICENSE="|| ( GPL-2 GPL-3 )"
SLOT="3.5" SLOT="3.5"
KEYWORDS= KEYWORDS=
IUSE="cups debug doc examples firebird ipv6 mysql nas nis opengl postgres sqlite xinerama" IUSE="cups debug doc examples firebird ipv6 mysql nas nis opengl postgres sqlite xinerama"
# no odbc, immtqt and immtqt-bc support anymore.
# TODO: optional support for xrender and xrandr # TODO: optional support for xrender and xrandr
RDEPEND=" RDEPEND="
virtual/jpeg:= virtual/jpeg:=
>=media-libs/freetype-2 media-libs/freetype
>=media-libs/libmng-1.0.9 media-libs/libmng
media-libs/libpng:= media-libs/libpng:=
sys-libs/zlib sys-libs/zlib
x11-libs/libXft x11-libs/libXft
@ -33,12 +31,10 @@ RDEPEND="
cups? ( net-print/cups ) cups? ( net-print/cups )
firebird? ( dev-db/firebird ) firebird? ( dev-db/firebird )
mysql? ( virtual/mysql ) mysql? ( virtual/mysql )
nas? ( >=media-libs/nas-1.5 ) nas? ( media-libs/nas )
opengl? ( virtual/opengl virtual/glu ) opengl? ( virtual/opengl virtual/glu )
postgres? ( dev-db/postgresql:= ) postgres? ( dev-db/postgresql:= )
xinerama? ( x11-libs/libXinerama ) xinerama? ( x11-libs/libXinerama )"
!dev-qt/qt:3
!dev-qt/qt-meta:3"
DEPEND="${RDEPEND} DEPEND="${RDEPEND}
x11-base/xorg-proto" x11-base/xorg-proto"
@ -82,13 +78,10 @@ src_prepare() {
# Apply user-provided patches # Apply user-provided patches
eapply_user eapply_user
# Do not link with -rpath. See bug #75181. # Do not link with -rpath. See Gentoo bug #75181.
find "${S}"/mkspecs -name qmake.conf | xargs \ find "${S}"/mkspecs -name qmake.conf | xargs \
sed -i -e 's:QMAKE_RPATH.*:QMAKE_RPATH =:' sed -i -e 's:QMAKE_RPATH.*:QMAKE_RPATH =:'
# set c/xxflags and ldflags
strip-flags
sed -i -e "s:QMAKE_CFLAGS_RELEASE.*=.*:QMAKE_CFLAGS_RELEASE=${CFLAGS}:" \ sed -i -e "s:QMAKE_CFLAGS_RELEASE.*=.*:QMAKE_CFLAGS_RELEASE=${CFLAGS}:" \
-e "s:QMAKE_CXXFLAGS_RELEASE.*=.*:QMAKE_CXXFLAGS_RELEASE=${CXXFLAGS}:" \ -e "s:QMAKE_CXXFLAGS_RELEASE.*=.*:QMAKE_CXXFLAGS_RELEASE=${CXXFLAGS}:" \
-e "s:QMAKE_LFLAGS_RELEASE.*=.*:QMAKE_LFLAGS_RELEASE=${LDFLAGS}:" \ -e "s:QMAKE_LFLAGS_RELEASE.*=.*:QMAKE_LFLAGS_RELEASE=${LDFLAGS}:" \
@ -116,8 +109,8 @@ src_prepare() {
src_configure() { src_configure() {
export SYSCONF="${D}${TQTBASE}"/etc/settings export SYSCONF="${D}${TQTBASE}"/etc/settings
# Let's just allow writing to these directories during Qt emerge # Let's just allow writing to these directories
# as it makes TQt much happier. # during emerge as it makes TQt much happier.
addwrite "${TQTBASE}/etc/settings" addwrite "${TQTBASE}/etc/settings"
addwrite "${HOME}/.qt" addwrite "${HOME}/.qt"
addwrite "${HOME}/.tqt" addwrite "${HOME}/.tqt"
@ -252,6 +245,6 @@ pkg_postinst() {
elog "occurs you should recompile the packages providing these plugins," elog "occurs you should recompile the packages providing these plugins,"
elog "and you should also make sure that TQt and its plugins were compiled with the" elog "and you should also make sure that TQt and its plugins were compiled with the"
elog "same version of GCC. Packages that may need to be rebuilt are, for instance," elog "same version of GCC. Packages that may need to be rebuilt are, for instance,"
elog "tde-base/tdelibs, tde-base/tdeartwork and tde-base/tdeartwork-styles." elog "trinity-base/tdelibs and trinity-base/tdeartwork-styles."
echo echo
} }

@ -2,10 +2,10 @@
# Copyright 2020 The Trinity Desktop Project # Copyright 2020 The Trinity Desktop Project
# Distributed under the terms of the GNU General Public License v2 # Distributed under the terms of the GNU General Public License v2
# $Id$ # $Id$
EAPI="5" EAPI="7"
TRINITY_MODULE_NAME="tdelibs" TRINITY_MODULE_NAME="tdelibs"
inherit trinity-base multilib inherit trinity-base-2 multilib
set-trinityver set-trinityver
@ -13,46 +13,47 @@ need-arts optional
DESCRIPTION="Trinity libraries needed by all TDE programs." DESCRIPTION="Trinity libraries needed by all TDE programs."
HOMEPAGE="http://www.trinitydesktop.org/" HOMEPAGE="http://www.trinitydesktop.org/"
LICENSE="GPL-2 LGPL-2" LICENSE="|| ( GPL-2 GPL-3 )"
SLOT="${TRINITY_VER}" SLOT="${TRINITY_VER}"
KEYWORDS=
IUSE+=" alsa avahi cups consolekit cryptsetup fam hwlib jpeg2k lua IUSE+=" alsa avahi cups consolekit cryptsetup fam jpeg2k lua
lzma networkmanager openexr pcsc-lite spell sudo tiff lzma networkmanager openexr pcsc-lite spell sudo tiff
utempter upower xcomposite +xrandr" utempter upower xcomposite hwlib +xrandr "
MY_DEPEND="=dev-tqt/tqtinterface-${PV} MY_DEPEND="=dev-tqt/tqtinterface-${PV}
>=dev-libs/libxslt-1.1.16 dev-libs/libxslt
>=dev-libs/libxml2-2.6.6 dev-libs/libxml2
>=dev-libs/libpcre-6.6 dev-libs/libpcre
net-dns/libidn net-dns/libidn
app-text/ghostscript-gpl app-text/ghostscript-gpl
>=dev-libs/openssl-0.9.7d:= dev-libs/openssl:=
media-libs/fontconfig media-libs/fontconfig
media-libs/freetype:2 media-libs/freetype:2
media-libs/libart_lgpl media-libs/libart_lgpl
sys-apps/dbus sys-apps/dbus
dev-libs/dbus-1-tqt =dev-libs/dbus-1-tqt-${PV}
x11-libs/libXcursor x11-libs/libXcursor
x11-libs/libXrender x11-libs/libXrender
alsa? ( media-libs/alsa-lib ) alsa? ( media-libs/alsa-lib )
avahi? ( net-dns/avahi ) avahi? ( net-dns/avahi )
cryptsetup? ( sys-fs/cryptsetup ) cryptsetup? ( sys-fs/cryptsetup )
cups? ( >=net-print/cups-1.1.19 ) cups? ( net-print/cups )
fam? ( virtual/fam ) fam? ( virtual/fam )
jpeg2k? ( media-libs/jasper ) jpeg2k? ( media-libs/jasper )
lua? ( dev-lang/lua:* ) lua? ( dev-lang/lua:* )
openexr? ( >=media-libs/openexr-1.2.2-r2 ) openexr? ( media-libs/openexr )
pcsc-lite? ( sys-apps/pcsc-lite ) pcsc-lite? ( sys-apps/pcsc-lite )
spell? ( >=app-dicts/aspell-en-6.0.0 >=app-text/aspell-0.60.5 ) spell? ( app-dicts/aspell-en app-text/aspell )
sudo? ( app-admin/sudo ) sudo? ( app-admin/sudo )
tiff? ( media-libs/tiff:= ) tiff? ( media-libs/tiff:= )
utempter? ( sys-libs/libutempter ) utempter? ( sys-libs/libutempter )
networkmanager? ( net-misc/networkmanager ) networkmanager? ( net-misc/networkmanager )
lzma? ( app-arch/xz-utils ) lzma? ( app-arch/xz-utils )
xrandr? ( >=x11-libs/libXrandr-1.2 ) xrandr? ( x11-libs/libXrandr )
xcomposite? ( x11-libs/libXcomposite )" xcomposite? ( x11-libs/libXcomposite )"
# NOTE: upstream lacks avahi support, so the use flag is currenly masked
# TODO: add elfres support via libr (not in portage now) # TODO: add elfres support via libr (not in portage now)
# NOTE: Building without tdehwlib segfaults, so no choice until fixed.
DEPEND+=" ${MY_DEPEND}" DEPEND+=" ${MY_DEPEND}"
RDEPEND+=" ${MY_DEPEND} RDEPEND+=" ${MY_DEPEND}
consolekit? ( sys-auth/consolekit ) consolekit? ( sys-auth/consolekit )
@ -68,8 +69,8 @@ src_configure() {
-DWITH_PCRE=ON -DWITH_PCRE=ON
-DWITH_HSPELL=OFF -DWITH_HSPELL=OFF
-DWITH_PKCS=OFF -DWITH_PKCS=OFF
-DWITH_TDEHWLIB="$(usex hwlib)" -DWITH_TDEHWLIB=ON
-DWITH_TDEHWLIB_DAEMONS="$(usex hwlib)" -DWITH_TDEHWLIB_DAEMONS=ON
-DWITH_ARTS=OFF -DWITH_ARTS=OFF
-DWITH_ALSA="$(usex alsa)" -DWITH_ALSA="$(usex alsa)"
-DWITH_AVAHI="$(usex avahi)" -DWITH_AVAHI="$(usex avahi)"
@ -93,11 +94,11 @@ src_configure() {
-DWITH_SUDO_TDESU_BACKEND="$(usex sudo)" -DWITH_SUDO_TDESU_BACKEND="$(usex sudo)"
) )
trinity-base_src_configure trinity-base-2_src_configure
} }
src_install() { src_install() {
trinity-base_src_install trinity-base-2_src_install
dodir /etc/env.d dodir /etc/env.d
# TDE expects that the install path is listed first in TDEDIRS and the user # TDE expects that the install path is listed first in TDEDIRS and the user
@ -129,8 +130,8 @@ cat <<EOF >"${D}/etc/revdep-rebuild/50-trinity-${SLOT}"
SEARCH_DIRS="${TDEDIR}/bin ${TDEDIR}/lib*" SEARCH_DIRS="${TDEDIR}/bin ${TDEDIR}/lib*"
EOF EOF
trinity-base_create_tmp_docfiles trinity-base-2_create_tmp_docfiles
trinity-base_install_docfiles trinity-base-2_install_docfiles
} }
pkg_postinst () { pkg_postinst () {

Loading…
Cancel
Save