| View previous topic :: View next topic |
| Author |
Message |
dmvianna l33t


Joined: 22 Mar 2004 Posts: 741 Location: Down Underland
|
Posted: Tue Jan 09, 2007 4:20 am Post subject: Help to make ebuild for sys-apps/libsmbios-0.12.4 [solved] |
|
|
I am used to change ebuilds in order to emerge upgrades & install overlays, but this is the first time I'm building one from scratch. And I'm getting a beating! Any help much appreciated. | Code: | SLOT="0" # Always set this one to 0, its only for packages with multible versions like gcc for example
LICENSE="GPL-2" # Licences we hate them, but we need them
KEYWORDS="~x86"
DESCRIPTION="The libsmbios project aims towards providing access to as much BIOS information as possible" # this should be a short description of your package
SRC_URI="http://linux.dell.com/libsmbios/download/libsmbios/${P}/${P}.tar.bz2" # The address where we can get our source
HOMEPAGE="http://linux.dell.com/libsmbios/main/index.html" # I think this one is clear, if your program has a homepage, you can put the link here
IUSE="xml doc"
DEPEND=">=sys-devel/gcc-3.2*
xml? ( >=xerces-c-2.7.0* )
doc? ( app-doc/doxygen )"
src_unpack() {
unpack ${A}
cd "${S}"
}
src_compile() {
if use xml; then
emake xml
else
emake noxml || die "Make failed"
fi
}
src_install()
{
SLOT="0" # Always set this one to 0, its only for packages with multible versions like gcc for example
LICENSE="GPL-2" # Licences we hate them, but we need them
KEYWORDS="~x86"
DESCRIPTION="The libsmbios project aims towards providing access to as much BIOS information as possible" # this should be a short description of your package
SRC_URI="http://linux.dell.com/libsmbios/download/libsmbios/${P}/${P}.tar.bz2" # The address where we can get our source
HOMEPAGE="http://linux.dell.com/libsmbios/main/index.html" # I think this one is clear, if your program has a homepage, you can put the link here
IUSE="xml doc"
DEPEND=">=sys-devel/gcc-3.2*
xml? ( >=xerces-c-2.7.0* )
doc? ( app-doc/doxygen )"
src_unpack() {
unpack ${A}
cd "${S}"
}
src_compile() {
if use xml; then
emake xml
else
emake noxml || die "Make failed"
fi
}
mkdir ${D}/lib
cp -r lib/* ${D}/lib/
if use doc; then
mkdir -p /usr/share/doc/${P}
cp -r doc/* /usr/share/doc/${P}/
fi
}
|
_________________ Proprietary is theft. Pierre-Joseph Proudhon, if he had a chance
Powered by a MacBook Pro
Last edited by dmvianna on Tue Jan 09, 2007 9:58 am; edited 1 time in total |
|
| Back to top |
|
 |
PaulBredbury Watchman


Joined: 14 Jul 2005 Posts: 6506
|
Posted: Tue Jan 09, 2007 8:04 am Post subject: |
|
|
| That src_install is wacko, redefining variables it should not be touching. |
|
| Back to top |
|
 |
desultory Administrator


Joined: 04 Nov 2005 Posts: 6906
|
Posted: Tue Jan 09, 2007 8:57 am Post subject: |
|
|
I could be wrong, but it seems to me that the intended content of the ebuild was more like the following. I have not tested it.
| Code: | SLOT="0" # Always set this one to 0, its only for packages with multible versions like gcc for example
LICENSE="GPL-2" # Licences we hate them, but we need them
KEYWORDS="~x86"
DESCRIPTION="The libsmbios project aims towards providing access to as much BIOS information as possible" # this should be a short description of your package
SRC_URI="http://linux.dell.com/libsmbios/download/libsmbios/${P}/${P}.tar.bz2" # The address where we can get our source
HOMEPAGE="http://linux.dell.com/libsmbios/main/index.html" # I think this one is clear, if your program has a homepage, you can put the link here
IUSE="xml doc"
DEPEND=">=sys-devel/gcc-3.2*
xml? ( >=xerces-c-2.7.0* )
doc? ( app-doc/doxygen )"
src_unpack() {
unpack ${A}
cd "${S}"
}
src_compile() {
if use xml; then
emake xml || die "Make failed."
else
emake noxml || die "Make failed."
fi
}
src_install()
{
mkdir ${D}/lib
cp -r lib/* ${D}/lib/
if use doc; then
mkdir -p /usr/share/doc/${P}
cp -r doc/* /usr/share/doc/${P}/
fi
} |
|
|
| Back to top |
|
 |
dmvianna l33t


Joined: 22 Mar 2004 Posts: 741 Location: Down Underland
|
Posted: Tue Jan 09, 2007 9:57 am Post subject: |
|
|
Yay! It works! Thanks so much, desultory!
[EDIT]: Just a small ammendment to USE="doc":
| Code: | SLOT="0" # Always set this one to 0, its only for packages with multible versions like gcc for example
LICENSE="GPL-2" # Licences we hate them, but we need them
KEYWORDS="~x86"
DESCRIPTION="The libsmbios project aims towards providing access to as much BIOS information as possible" # this should be a short description of your package
SRC_URI="http://linux.dell.com/libsmbios/download/libsmbios/${P}/${P}.tar.bz2" # The address where we can get our source
HOMEPAGE="http://linux.dell.com/libsmbios/main/index.html" # I think this one is clear, if your program has a homepage, you can put the link here
IUSE="xml doc"
DEPEND=">=sys-devel/gcc-3.2
>=dev-util/cppunit-1.8.0
xml? ( >=dev-libs/xerces-c-2.3* )
#doc? ( app-doc/doxygen )"
src_unpack() {
unpack ${A}
cd "${S}"
}
src_compile() {
if use xml; then
emake xml || die "Make failed."
else
emake noxml || die "Make failed."
fi
}
src_install()
{
mkdir ${D}/lib
cp -r lib/* ${D}/lib/
if use doc; then
dodoc doc /usr/share/doc/${P}
mkdir ${D}/usr/share/doc/${P}
cp -r doc ${D}/usr/share/doc/${P}/
fi
} |
_________________ Proprietary is theft. Pierre-Joseph Proudhon, if he had a chance
Powered by a MacBook Pro |
|
| Back to top |
|
 |
dmvianna l33t


Joined: 22 Mar 2004 Posts: 741 Location: Down Underland
|
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|