summaryrefslogtreecommitdiffstats
path: root/trinity-base/tdelibs
diff options
context:
space:
mode:
authorSlávek Banko <slavek.banko@axis.cz>2019-11-28 02:34:44 +0100
committerSlávek Banko <slavek.banko@axis.cz>2019-11-28 02:34:44 +0100
commit644110a847c5911c2eb04eb53c93031740561efc (patch)
tree9658dde1cc70b52b233957b7852f87d997e98156 /trinity-base/tdelibs
downloadtde-packaging-gentoo-644110a847c5911c2eb04eb53c93031740561efc.tar.gz
tde-packaging-gentoo-644110a847c5911c2eb04eb53c93031740561efc.zip
Initial import of an ebuilds tree
from Fat-Zer's (Alexander Golubev) repository. Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
Diffstat (limited to 'trinity-base/tdelibs')
-rw-r--r--trinity-base/tdelibs/metadata.xml17
-rw-r--r--trinity-base/tdelibs/tdelibs-9999.ebuild143
2 files changed, 160 insertions, 0 deletions
diff --git a/trinity-base/tdelibs/metadata.xml b/trinity-base/tdelibs/metadata.xml
new file mode 100644
index 00000000..2f566785
--- /dev/null
+++ b/trinity-base/tdelibs/metadata.xml
@@ -0,0 +1,17 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>fatzer2@gmail.com</email>
+ <name>Alexander Golubev</name>
+ </maintainer>
+ <use>
+ <flag name="sudo"> Use <pkg>app-admin/sudo</pkg> as a default program to
+ obtain root privileges.</flag>
+ <flag name="utempter">Records user logins. Useful on multi-user systems</flag>
+ <flag name="consolekit">Enable <pkg>sys-auth/consolekit</pkg> as tdehw backend</flag>
+ <flag name="old_udisks">Enable <pkg>sys-fs/udisks</pkg>:0 as tdehw backend</flag>
+ <flag name="udisks">Enable <pkg>sys-fs/udisks</pkg>:2 as tdehw backend</flag>
+ <flag name="upower">Enable <pkg>sys-power/upower</pkg> as tdehw backend</flag>
+ </use>
+</pkgmetadata>
diff --git a/trinity-base/tdelibs/tdelibs-9999.ebuild b/trinity-base/tdelibs/tdelibs-9999.ebuild
new file mode 100644
index 00000000..1fc1863d
--- /dev/null
+++ b/trinity-base/tdelibs/tdelibs-9999.ebuild
@@ -0,0 +1,143 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+EAPI="5"
+TRINITY_MODULE_NAME="$PN"
+
+inherit trinity-base multilib
+
+set-trinityver
+
+need-arts optional
+
+DESCRIPTION="Trinity libraries needed by all TDE programs."
+HOMEPAGE="http://www.trinitydesktop.org/"
+LICENSE="GPL-2 LGPL-2"
+SLOT="${TRINITY_VER}"
+KEYWORDS=
+IUSE+=" alsa avahi cups consolekit fam jpeg2k lua lzma networkmanager openexr
+ spell sudo tiff utempter upower udisks old_udisks xcomposite +xrandr"
+
+MY_DEPEND=">=dev-qt/tqtinterface-${TRINITY_VER}
+ >=dev-libs/libxslt-1.1.16
+ >=dev-libs/libxml2-2.6.6
+ >=dev-libs/libpcre-6.6
+ net-dns/libidn
+ app-text/ghostscript-gpl
+ >=dev-libs/openssl-0.9.7d:=
+ media-libs/fontconfig
+ media-libs/freetype:2
+ media-libs/libart_lgpl
+ sys-apps/dbus
+ dev-libs/dbus-1-tqt
+ x11-libs/libXcursor
+ x11-libs/libXrender
+ alsa? ( media-libs/alsa-lib )
+ avahi? ( net-dns/avahi )
+ cups? ( >=net-print/cups-1.1.19 )
+ fam? ( virtual/fam )
+ jpeg2k? ( media-libs/jasper )
+ lua? ( dev-lang/lua:* )
+ openexr? ( >=media-libs/openexr-1.2.2-r2 )
+ spell? ( >=app-dicts/aspell-en-6.0.0 >=app-text/aspell-0.60.5 )
+ sudo? ( app-admin/sudo )
+ tiff? ( media-libs/tiff:= )
+ utempter? ( sys-libs/libutempter )
+ networkmanager? ( net-misc/networkmanager )
+ lzma? ( app-arch/xz-utils )
+ xrandr? ( >=x11-libs/libXrandr-1.2 )
+ 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)
+DEPEND+=" ${MY_DEPEND}"
+RDEPEND+=" ${MY_DEPEND}
+ consolekit? ( sys-auth/consolekit )
+ upower? ( sys-power/upower )
+ udisks? ( sys-fs/udisks:2 )
+ old_udisks? ( sys-fs/udisks:0 )"
+
+src_configure() {
+ mycmakeargs=(
+ -DMALLOC_FULL=ON
+ -DWITH_LIBIDN=ON
+ -DWITH_SSL=ON
+ -DWITH_LIBART=ON
+ -DWITH_PCRE=ON
+ -DWITH_XCURSOR=ON
+ -DWITH_HSPELL=OFF
+ -DKDE4_DEFAULT_HOME=.kde4
+ $(cmake-utils_use_with alsa ALSA)
+ $(cmake-utils_use_with avahi AVAHI)
+ $(cmake-utils_use_with cups CUPS)
+ $(cmake-utils_use_with kernel_linux INOTIFY)
+ $(cmake-utils_use_with jpeg2k JASPER)
+ $(cmake-utils_use_with lua LUA)
+ $(cmake-utils_use_with lzma LZMA)
+ $(cmake-utils_use_with openexr OPENEXR)
+ $(cmake-utils_use_with spell ASPELL)
+ $(cmake-utils_use_with fam GAMIN)
+ $(cmake-utils_use_with tiff TIFF)
+ $(cmake-utils_use_with utempter UTEMPTER)
+ $(cmake-utils_use_with upower UPOWER)
+ $(cmake-utils_use_with old_udisks UDISKS)
+ $(cmake-utils_use_with udisks UDISKS2)
+ $(cmake-utils_use_with consolekit CONSOLEKIT)
+ $(cmake-utils_use_with networkmanager WITH_NETWORK_MANAGER_BACKEND)
+ $(cmake-utils_use_with xcomposite XCOMPOSITE)
+ $(cmake-utils_use_with xrandr XRANDR)
+ $(cmake-utils_use_with sudo SUDO_KDESU_BACKEND)
+ )
+
+ trinity-base_src_configure
+}
+
+src_install() {
+ trinity-base_src_install
+
+ dodir /etc/env.d
+ # KDE implies that the install path is listed first in TDEDIRS and the user
+ # directory (implicitly added) to be the last entry. Doing otherwise breaks
+ # certain functionality. Do not break this (once again *sigh*), but read the code.
+ # KDE saves the installed path implicitly and so this is not needed, /usr
+ # is set in ${TDEDIR}/share/config/kdeglobals and so TDEDIRS is not needed.
+
+ # List all the multilib libdirs
+ local libdirs pkgconfigdirs
+ for libdir in $(get_all_libdirs); do
+ libdirs="${TDEDIR}/${libdir}:${libdirs}"
+ done
+
+ cat <<EOF >"${D}/etc/env.d/45trinitypaths-${SLOT}" # number goes down with version upgrade
+PATH=${TDEDIR}/bin
+ROOTPATH=${TDEDIR}/sbin:${TDEDIR}/bin
+LDPATH=${libdirs#:}
+MANPATH=${TDEDIR}/share/man
+CONFIG_PROTECT="${TDEDIR}/share/config ${TDEDIR}/env ${TDEDIR}/shutdown /usr/share/config"
+#TDE_IS_PRELINKED=1
+# Excessive flushing to disk as in releases before KDE 3.5.10. Usually you don't want that.
+#TDE_EXTRA_FSYNC=1
+XDG_DATA_DIRS="${TDEDIR}/share"
+PKG_CONFIG_PATH="${TDEDIR}/$(get_libdir)/pkgconfig"
+EOF
+
+ # Make sure the target for the revdep-rebuild stuff exists. Fixes bug 184441.
+ dodir /etc/revdep-rebuild
+
+cat <<EOF >"${D}/etc/revdep-rebuild/50-trinity-${SLOT}"
+SEARCH_DIRS="${TDEDIR}/bin ${TDEDIR}/lib*"
+EOF
+
+ trinity-base_create_tmp_docfiles
+ trinity-base_install_docfiles
+}
+
+pkg_postinst () {
+ if use sudo; then
+ einfo "Remember sudo use flag sets only the defauld value"
+ einfo "It can be overriden on a user-level by adding:"
+ einfo " [super-user-command]"
+ einfo " super-user-command=su"
+ einfo "To the kdeglobal config file which is should be usually"
+ einfo "located in the ~/.trinity/share/config/ directory."
+ fi
+}