You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
calculate-overlay/app-misc/cls-meta/cls-meta-10.9.ebuild

66 lines
1.4 KiB

# Copyright 1999-2010 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $
EAPI=2
inherit calculate
DESCRIPTION="Calculate Linux Scratch (meta package)"
HOMEPAGE="http://www.calculate-linux.org/main/en/cls"
SRC_URI=""
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="x86 amd64"
IUSE="printer wireless"
RDEPEND="
app-misc/cl-base-meta
printer? (
app-misc/cl-printer-meta
)
app-misc/cl-useful-meta
wireless? (
app-misc/cl-wireless-meta
)
"
RDEPEND="${RDEPEND}
app-misc/calculate-install-gui
media-fonts/dejavu
media-gfx/cls-themes
virtual/dhcpc
sys-apps/pcmciautils
sys-apps/usb_modeswitch
x11-base/xorg-x11
x11-terms/rxvt-unicode
x11-wm/openbox
"
cxxflags_present_in() {
grep CXXFLAGS $1 &>/dev/null
return $?
}
append_cxxflags_to() {
sed -i '$aCXXFLAGS="\${CFLAGS}"' $1
}
pkg_postinst() {
cxxflags_present_in /etc/make.conf || append_cxxflags_to /etc/make.conf
calculate_change_version
local calculatename=$( get_value calculate < ${CALCULATE_INI} )
local system=$( get_value system < ${CALCULATE_INI} )
# check version on stable (PV has only 2 digit)
if ! [[ "$PV" =~ ^[[:digit:]]+\.[[:digit:]]+\.[[:digit:]]+ ]]
then
[[ "$calculatename" == "CLS" ]] &&
[[ -n "$(eselect profile show |
grep calculate/${system}/${calculatename}/${ARCH}/developer)" ]] &&
eselect profile set calculate/${system}/${calculatename}/${ARCH}
fi
}