diff options
author | E. Liddell <ejlddll@warpmail.net> | 2020-01-04 15:52:45 -0500 |
---|---|---|
committer | TDE Gitea <gitea@mirror.git.trinitydesktop.org> | 2020-01-06 23:43:40 +0000 |
commit | caa72c95dead3dfe0a365b47d783393ae98e3f14 (patch) | |
tree | 40876e12249ba9c3eaf0a34003e1079e926ab6b6 /eclass/trinity-functions.eclass | |
parent | 3ffa67c73f0d6aee8c9cd5bd78b6ec3961bbb399 (diff) | |
download | tde-packaging-gentoo-caa72c95dead3dfe0a365b47d783393ae98e3f14.tar.gz tde-packaging-gentoo-caa72c95dead3dfe0a365b47d783393ae98e3f14.zip |
Moved EAPI 7 eclasses to trinity-[foo]-2.eclass; 14.0.6 ebuilds for tqt, tqtinterface, dbus-1-tqt, tdelibs amended to work with new eclasses
Signed-off-by: E. Liddell <ejlddll@warpmail.net>
Diffstat (limited to 'eclass/trinity-functions.eclass')
-rw-r--r-- | eclass/trinity-functions.eclass | 52 |
1 files changed, 36 insertions, 16 deletions
diff --git a/eclass/trinity-functions.eclass b/eclass/trinity-functions.eclass index ae904157..6e15321d 100644 --- a/eclass/trinity-functions.eclass +++ b/eclass/trinity-functions.eclass @@ -7,9 +7,9 @@ # Purpose: basic trinity functions and variables # -inherit multilib +inherit versionator multilib -TRINITY_LIVEVER="14.1.0" +TRINITY_LIVEVER="14.0.0" # @FUNCTION: set-trinityver # @USAGE: < version > @@ -21,10 +21,16 @@ set-trinityver() { # set install location: # - 3rd party apps go into /usr, and have SLOT="0". - # - kde-base category ebuilds go into /usr/trinity/$ETRINITY_VER, + # - kde-base category ebuilds go into /usr/kde/$MAJORVER.$MINORVER, # and have SLOT="$MAJORVER.$MINORVER". - # - This function exports $PREFIX (location to install to) and $TDEDIR + # - This function exports $PREFIX (location to install to) and $KDEDIR # (location of kdelibs to link against) for all ebuilds. + # + # -- Overrides - deprecated but working for now: -- + # - If $KDEPREFIX is defined (in the profile or env), it overrides everything + # and both base and 3rd party kde stuff goes in there. + # - If $KDELIBSDIR is defined, the kdelibs installed in that location will be + # used, even by kde-base packages. # get version elements if [[ -n "$1" ]]; then @@ -34,20 +40,28 @@ set-trinityver() { fi case "$ETRINITY_VER" in + 3.* ) + export TRINITY_VER="$(get_version_component_range 1-2 "${ETRINITY_VER}")" ;; 9999 ) - export TRINITY_VER="$(ver_cut 1 "$TRINITY_LIVEVER" )" ;; + export TRINITY_VER="$(get_major_version "$TRINITY_LIVEVER" )" ;; * ) - export TRINITY_VER="$(ver_cut 1 "$ETRINITY_VER" )" ;; + export TRINITY_VER="$(get_major_version "$ETRINITY_VER" )" ;; esac export TDEDIR="/usr/trinity/${TRINITY_VER}" export TDEDIRS="/usr/trinity/${TRINITY_VER}" - # this sould solve problems like "cannot find libraries", especially when - # compiling tdelibs - # NOTE: binaries which run during compilation and try to load shared - # libraries from the TDE directory (which may be broken) may still - # break compilation of tdelibs(?) + # 3.5.x still uses KDE* variables + if [ "${TRINITY_VER}" = "3.5" ]; then + export KDEDIR="$TDEDIR" + export KDEDIRS="$TDEDIRS" + fi + + # this sould solve problems like "cannot find libraries" espessialy when + # compiling kdelibs + # NOTE: That can breaks compilation of tdelibs: + # binaries which runs during compilation are tring to load shared + # libraries from the TDE's directory wich may be broken. # TODO: fix that issue for tdelibs adjust-trinity-paths } @@ -87,7 +101,7 @@ adjust-trinity-paths() { export PATH export LD_LIBRARY_PATH - # Unset home paths so applications wouldn't try to write to root's dir while building + # Unset home paths so aplications wouldn't try to write to root's dir while build unset TDEHOME unset TDEROOTHOME } @@ -127,7 +141,12 @@ need-trinity() { set-trinityver $1 adjust-trinity-paths - my_depend=">=trinity-base/tdelibs-${ETRINITY_VER}:${TRINITY_VER}" + case "$1" in + 3.5*) + my_depend=">=trinity-base/kdelibs-${ETRINITY_VER}:3.5";; + *) + my_depend=">=trinity-base/tdelibs-${ETRINITY_VER}:${TRINITY_VER}";; + esac DEPEND="$DEPEND $my_depend" RDEPEND="$RDEPEND $my_depend" @@ -135,14 +154,14 @@ need-trinity() { # @ECLASS-VARIABLE: TRINITY_NEED_ARTS # @DESCRIPTION: -# This variable is set by the need-arts function. Possible arguments values 'yes', 'no' and 'optional' +# This variable is setted by need-arts function. Possible arguments values 'yes', 'no' and 'optional' # Default is 'no' TRINITY_NEED_ARTS="no" # @FUNCTION: need-arts # @USAGE: need-arts <yes|optional> # @DESCRIPTION: -# This function adds DEPENDs for aRTs support. Possible arguments are 'yes' and 'optinal' +# This function adds DEPEND's for aRTs-support Possible arguments are 'yes' and 'optinal' # 'yes' means arts is required, optional' results in USE flag arts. # NOTE: this function modifies IUSE DEPEND and RDEPEND variables, so if you call it before setting # those variables don't forget to include the priviously setted value into them. @@ -156,7 +175,8 @@ need-arts() { TRINITY_NEED_ARTS=$1; case "${TRINITY_VER}" in - "") die "You must call set-trinityver functions to set TRINITY_VER before calling $FUNCNAME.";; + "") die "You must call set-trinityver unctions to set TRINITY_VER before calling $FUNCNAME.";; + 3.5*) tdelibs="trinity-base/kdelibs";; *) tdelibs="trinity-base/tdelibs";; esac |