parent
00922003a8
commit
bfdeae4269
@ -0,0 +1,33 @@
|
||||
# Copyright 1999-2011 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: $
|
||||
|
||||
EAPI="3"
|
||||
|
||||
inherit distutils eutils
|
||||
|
||||
SRC_URI="ftp://ftp.calculate.ru/pub/calculate/calculate2/${PN}/${P}.tar.bz2"
|
||||
|
||||
DESCRIPTION="The library for Calculate 2"
|
||||
HOMEPAGE="http://www.calculate-linux.org/main/en/calculate2"
|
||||
LICENSE="Apache-2.0"
|
||||
SLOT="2.2"
|
||||
KEYWORDS="amd64 x86"
|
||||
IUSE="minimal"
|
||||
DEPEND="!<sys-apps/calculate-lib-2.1.8-r1
|
||||
!=sys-apps/calculate-lib-2.1.9
|
||||
!=sys-apps/calculate-lib-2.1.10
|
||||
!minimal? ( dev-python/py-smbpasswd )
|
||||
>=dev-python/pyxml-0.8
|
||||
sys-apps/file[python]"
|
||||
RDEPEND="${DEPEND}"
|
||||
|
||||
src_unpack() {
|
||||
unpack "${A}"
|
||||
cd "${S}"
|
||||
|
||||
# add some features
|
||||
epatch "${FILESDIR}/calculate-lib-2.2.17-backport.patch"
|
||||
# fix x11 video driver detect
|
||||
epatch "${FILESDIR}/calculate-lib-2.2.17-fix_videodetect.patch"
|
||||
}
|
@ -0,0 +1,29 @@
|
||||
commit d22ba198c61eccec92c1ec1309380fba19757c23
|
||||
Author: Mike Hiretsky <mh@calculate.ru>
|
||||
Date: Fri Jun 24 10:49:36 2011 +0400
|
||||
|
||||
Remove from available X11 drivers drivers in /usr/portage/distfiles.
|
||||
|
||||
diff --git a/pym/cl_utils.py b/pym/cl_utils.py
|
||||
index 24760c9..025b051 100644
|
||||
--- a/pym/cl_utils.py
|
||||
+++ b/pym/cl_utils.py
|
||||
@@ -967,16 +967,10 @@ def getSquashList():
|
||||
|
||||
def getAvailableX11Drivers(prefix="/"):
|
||||
"""Get available x11 drivers"""
|
||||
- distfiles = path.join(prefix,'usr/portage/distfiles')
|
||||
xorg_modules_dir = path.join(prefix,'usr/lib/xorg/modules/drivers')
|
||||
- return list(set(
|
||||
- map(lambda x:'fglrx' if x.startswith('ati-driver') else "nvidia",
|
||||
- filter(lambda x:x.startswith('ati-driver-installer') or
|
||||
- x.startswith('NVIDIA-Linux'),
|
||||
- listDirectory(distfiles))) + \
|
||||
- map(lambda x: x[:-7],
|
||||
+ return map(lambda x: x[:-7],
|
||||
filter(lambda x:x.endswith('_drv.so'),
|
||||
- listDirectory(xorg_modules_dir)))))
|
||||
+ listDirectory(xorg_modules_dir)))
|
||||
|
||||
def lspci(filtername=None,shortInfo=False):
|
||||
"""Get hash of lspci, filtred by filtername. If shortInfo, then
|
@ -0,0 +1,36 @@
|
||||
# Copyright 1999-2011 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: $
|
||||
|
||||
EAPI=3
|
||||
|
||||
DESCRIPTION="Calculate Utilities meta package"
|
||||
HOMEPAGE="http://www.calculate-linux.org/main/en/calculate2"
|
||||
SRC_URI=""
|
||||
|
||||
LICENSE="Apache-2.0"
|
||||
SLOT="0"
|
||||
KEYWORDS="amd64 x86"
|
||||
IUSE="
|
||||
cl_assemble
|
||||
cl_builder
|
||||
cl_client
|
||||
cl_desktop
|
||||
cl_installgui
|
||||
cl_server
|
||||
"
|
||||
|
||||
RDEPEND="${RDEPEND}
|
||||
=sys-apps/calculate-install-2.2.17-r1
|
||||
=sys-apps/calculate-templates-2.2.17-r3
|
||||
=sys-apps/calculate-lib-2.2.17-r2
|
||||
|
||||
cl_assemble? ( =sys-apps/calculate-assemble-2.2.17 )
|
||||
cl_builder? ( =sys-apps/calculate-builder-2.2.17 )
|
||||
cl_client? ( =sys-apps/calculate-client-2.2.17 )
|
||||
cl_desktop? ( =sys-apps/calculate-desktop-2.2.17 )
|
||||
cl_installgui? ( =app-misc/calculate-install-gui-2.2.17 )
|
||||
|
||||
cl_server? ( =sys-apps/calculate-server-2.1.14-r2 )
|
||||
"
|
||||
|
Loading…
Reference in new issue