summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'kde-base/kde-env/kde-env-4.3.3.ebuild')
-rw-r--r--kde-base/kde-env/kde-env-4.3.3.ebuild90
1 files changed, 90 insertions, 0 deletions
diff --git a/kde-base/kde-env/kde-env-4.3.3.ebuild b/kde-base/kde-env/kde-env-4.3.3.ebuild
new file mode 100644
index 000000000000..6fa8bb87ec69
--- /dev/null
+++ b/kde-base/kde-env/kde-env-4.3.3.ebuild
@@ -0,0 +1,90 @@
+# Copyright 1999-2009 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/kde-base/kde-env/kde-env-4.3.3.ebuild,v 1.1 2009/11/02 20:55:21 wired Exp $
+
+EAPI="2"
+
+inherit kde4-base
+
+DESCRIPTION="Environment setting required for all KDE4 apps to run."
+HOMEPAGE="http://kde.org"
+[[ ${PV} = *9999* ]] && ESVN_REPO_URI="" || SRC_URI=""
+
+KEYWORDS="~alpha ~amd64 ~hppa ~ia64 ~ppc ~ppc64 ~x86"
+LICENSE="as-is"
+IUSE=""
+
+add_blocker kdelibs 4.2.2-r1 '<3.5.10-r3:3.5' 4.2.70:4.3
+
+src_unpack() {
+ :
+}
+
+src_prepare() {
+ :
+}
+
+src_configure() {
+ :
+}
+
+src_compile() {
+ :
+}
+
+src_install() {
+ dodir /etc/env.d
+ dodir /etc/revdep-rebuild
+ dodir "${PREFIX}/share/config"
+
+ # List all the multilib libdirs
+ local _libdir _libdirs
+ for _libdir in $(get_all_libdirs); do
+ _libdirs="${_libdirs}:${PREFIX}/${_libdir}"
+ done
+ _libdirs=${_libdirs#:}
+
+ if use kdeprefix; then
+
+ # number goes down with version
+ cat <<-EOF > "${T}/43kdepaths-${SLOT}"
+PATH="${PREFIX}/bin"
+ROOTPATH="${PREFIX}/sbin:${PREFIX}/bin"
+LDPATH="${_libdirs}"
+MANPATH="${PREFIX}/share/man"
+CONFIG_PROTECT="${PREFIX}/share/config ${PREFIX}/env ${PREFIX}/shutdown /usr/share/config"
+#KDE_IS_PRELINKED=1
+PKG_CONFIG_PATH="${PREFIX}/$(get_libdir)/pkgconfig"
+XDG_DATA_DIRS="${PREFIX}/share"
+EOF
+ doenvd "${T}/43kdepaths-${SLOT}"
+ cat <<-EOF > "${D}/etc/revdep-rebuild/50-kde-${SLOT}"
+SEARCH_DIRS="${PREFIX}/bin ${PREFIX}/lib*"
+EOF
+
+ # kdeglobals needed to make third party apps installed in /usr work
+ cat <<-EOF > "${D}/${PREFIX}/share/config/kdeglobals"
+[Directories][\$i]
+prefixes=/usr
+EOF
+
+ else
+
+ # Much simpler for the FHS compliant -kdeprefix install
+ # number goes down with version
+ cat <<-EOF > "${T}/43kdepaths"
+CONFIG_PROTECT="/usr/share/config"
+#KDE_IS_PRELINKED=1
+EOF
+ doenvd "${T}/43kdepaths"
+
+ fi
+}
+
+pkg_preinst() {
+ :
+}
+
+src_test() {
+ :
+}