hwdb ebuild fix

git-svn-id: http://svn.sabayonlinux.org/overlay@693 d7aec97c-591d-0410-af39-a8856400b30a
This commit is contained in:
cvill64
2007-01-05 08:18:24 +00:00
parent 4ea044732f
commit cf5fa062fc
4 changed files with 0 additions and 113 deletions
-12
View File
@@ -1,12 +0,0 @@
AUX sabayon-install.py 1015 RMD160 80f18fa2763a649aa0834110380a2eb9da912242 SHA1 67b72a1d2b2430762e4318c4ac44dc7829d59b96 SHA256 93fb24596ef919f286ebbb8e13074e0a1fbda04938770c453f38d2ba164f8711
MD5 49b2469be722fd61a47c4bf0d7eae4f9 files/sabayon-install.py 1015
RMD160 80f18fa2763a649aa0834110380a2eb9da912242 files/sabayon-install.py 1015
SHA256 93fb24596ef919f286ebbb8e13074e0a1fbda04938770c453f38d2ba164f8711 files/sabayon-install.py 1015
DIST hwdb-client_0.6-0ubuntu16.tar.gz 4546888 RMD160 46a0fa2a6d5f52b55a2731a577ddce917c6c93c4 SHA1 cbe9aa749ed4670f2a5d0be62268f1c070e4b70c SHA256 badecc33337c89ebbf9df882374f554cc4e5660dbed5e081d7748bcb9c6f301f
EBUILD hwdb-client-0.6.ebuild 1229 RMD160 1d412fc49db0aec9cfa8d9d940f35819078fb7ca SHA1 b7e195033966770917774e354d826f4ed19b8e2e SHA256 89c066045d7899929a9e043161166bb9b435360cb5722c31dde97bd1c5c733b6
MD5 b51400e5c743f5c9006c8956e9faec2b hwdb-client-0.6.ebuild 1229
RMD160 1d412fc49db0aec9cfa8d9d940f35819078fb7ca hwdb-client-0.6.ebuild 1229
SHA256 89c066045d7899929a9e043161166bb9b435360cb5722c31dde97bd1c5c733b6 hwdb-client-0.6.ebuild 1229
MD5 e84ee1939637ac062097cb8636e33514 files/digest-hwdb-client-0.6 280
RMD160 f0c72a679cf883e490adcd1789c0316949801e79 files/digest-hwdb-client-0.6 280
SHA256 d938114e948c4495ce186ed3ff3a5107a8a9e0a7b3f1beb273c770a0fb0a4525 files/digest-hwdb-client-0.6 280
@@ -1,3 +0,0 @@
MD5 adf59dc4802805685dade7f3b7c0a83d hwdb-client_0.6-0ubuntu16.tar.gz 4546888
RMD160 46a0fa2a6d5f52b55a2731a577ddce917c6c93c4 hwdb-client_0.6-0ubuntu16.tar.gz 4546888
SHA256 badecc33337c89ebbf9df882374f554cc4e5660dbed5e081d7748bcb9c6f301f hwdb-client_0.6-0ubuntu16.tar.gz 4546888
@@ -1,43 +0,0 @@
#!/usr/bin/python
# hwdb-client debian installer wrapper
# you need to run this inside the root of the hwdb-client sources
import os
# variables
debianDirList = os.listdir("debian")
installerOutput = "install.sh"
outfile = []
for file in debianDirList:
if file.endswith(".install"):
f = open("debian/"+file,"r")
content = f.readlines()
f.close()
for line in content:
line = line.strip().split()
if len(line) == 2:
outfile.append("cp -Rp "+line[0]+" ${D}"+line[1])
f.close()
# fix /usr/lib/python2.4 path
import re
newoutfile = []
for line in outfile:
if line.find("python2.4") != -1:
out = re.subn('2.4',"${PYVER}", line)
line = out
if len(line) == 2:
newoutfile.append(line[0]+"\n")
else:
newoutfile.append(line+"\n")
outfile = newoutfile
del newoutfile
f = open(installerOutput,"w")
f.write("#!/bin/sh\n")
f.writelines(outfile)
f.flush()
f.close()
os.chmod(installerOutput,0700)
@@ -1,55 +0,0 @@
# Copyright 2006 Sabayon Linux
# Distributed under the terms of the GNU General Public License v2
inherit distutils
UBUNTU_REV="0ubuntu16"
DESCRIPTION="Hardware Database Client, useful to collect and report hardware information"
HOMEPAGE="http://www.sabayonlinux.org"
SRC_URI="http://www.sabayonlinux.org/distfiles/x11-misc/${PN}_${PV}-${UBUNTU_REV}.tar.gz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~ppc ~x86"
IUSE="gtk qt4"
DEPEND="=dev-lang/python-2.4*
(qt4?) dev-python/PyQt4
net-analyzer/fping"
RDEPEND="${DEPEND}"
src_unpack() {
unpack ${A}
# well'add our patches here
cp ${FILESDIR}/sabayon-install.py ${S}/setup.py
}
src_compile() {
einfo "no compilation needed"
cd ${S}
# run our installer wrapper
python setup.py
}
src_install() {
distutils_python_version
cd ${S}
dodir /usr/bin
dodir /usr/share/hwdb-client
dodir /usr/share/locale
dodir /usr/share/applications/kde
dodir /usr/lib/python${PYVER}/site-packages/hwdb_client
dodir /usr/share/apps/hwdb-client-kde/pics
dodir /usr/share/icons/crystalsvg/22x22/apps
dodir /usr/share/gnome/help/hwdb-client/C
# prepare dirs
./install.sh
if ! use qt4; then
rm ${D}/usr/bin/hwdb-kde
rm ${D}/usr/share/apps/hwdb-client-kde -rf
fi
}