Live ebuild для 3.3

master
Mike Khiretskiy 10 years ago
parent d8e7a633b6
commit 29b7837fc0

@ -14,7 +14,12 @@ PYTHON_COMPAT=(python2_7)
inherit distutils-r1 eutils versionator
EXPORTED_FUNCTIONS="src_compile src_install pkg_postinst pkg_preinst"
if [[ ${PV/9999/} != ${PV} ]]
then
inherit git-2
fi
EXPORTED_FUNCTIONS="src_unpack src_compile src_install pkg_postinst pkg_preinst"
CALCULATE_URI="ftp://ftp.calculate.ru/pub/calculate/calculate3"
MIRROR_URI="http://mirror.yandex.ru/calculate/calculate3"
@ -83,7 +88,6 @@ prepare_variables() {
CALCULATE_MODULES_USE_[$module]=${CALCULATE_MODULES_USE[$module]}
done
for module in ${!CALCULATE_MODULES_[@]}
do
MODULE_PN=calculate-${module}
@ -118,6 +122,11 @@ prepare_variables() {
SRC_URI="$SRC_URI $MODULE_URI"
done
if [[ ${PV/9999/} != ${PV} ]]
then
SRC_URI=""
fi
IUSE="minimal pxe ${CALCULATE_MODULES_USE_[@]}"
S="${WORKDIR}"
}
@ -199,6 +208,21 @@ DEPEND="sys-devel/gettext"
REQUIRED_USE="client? ( desktop )"
# @FUNCTION: calculate-utils_src_unpack
# @DESCRIPTION:
# Unpack all modules of calculate utils
calculate-utils_src_unpack() {
if [[ ${PV/9999/} != ${PV} ]]
then
for MODULE in "${MODULE_INFO[@]}"
do
MODULE_DATA=( $MODULE )
MODULE_PN=${MODULE_DATA[0]}
EGIT_SOURCEDIR=${WORKDIR}/${MODULE_PN}-${PV} EGIT_REPO_URI=git://git.calculate.ru/calculate-3/${MODULE_PN}.git git-2_src_unpack
done
fi
}
# @FUNCTION: calculate-utils_src_compile
# @DESCRIPTION:
# Compile all modules of calculate utils

@ -0,0 +1,15 @@
# Copyright 1999-2015 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $
EAPI="5"
PYTHON_COMPAT=(python2_7)
inherit calculate-utils
DESCRIPTION="A set of Calculate utilities for system installation, build and upgrade"
HOMEPAGE="http://www.calculate-linux.org/main/en/calculate_utilities"
LICENSE="Apache-2.0"
SLOT="3"
KEYWORDS=""
Loading…
Cancel
Save