Gentoo Forums
Gentoo Forums
Quick Search: in
Help to make ebuild for sys-apps/libsmbios-0.12.4 [solved]
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Unsupported Software
View previous topic :: View next topic  
Author Message
dmvianna
l33t
l33t


Joined: 22 Mar 2004
Posts: 741
Location: Down Underland

PostPosted: Tue Jan 09, 2007 4:20 am    Post subject: Help to make ebuild for sys-apps/libsmbios-0.12.4 [solved] Reply with quote

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
View user's profile Send private message
PaulBredbury
Watchman
Watchman


Joined: 14 Jul 2005
Posts: 6506

PostPosted: Tue Jan 09, 2007 8:04 am    Post subject: Reply with quote

That src_install is wacko, redefining variables it should not be touching.
Back to top
View user's profile Send private message
desultory
Administrator
Administrator


Joined: 04 Nov 2005
Posts: 6906

PostPosted: Tue Jan 09, 2007 8:57 am    Post subject: Reply with quote

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
View user's profile Send private message
dmvianna
l33t
l33t


Joined: 22 Mar 2004
Posts: 741
Location: Down Underland

PostPosted: Tue Jan 09, 2007 9:57 am    Post subject: Reply with quote

Yay! It works! Thanks so much, desultory! :D

[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
View user's profile Send private message
dmvianna
l33t
l33t


Joined: 22 Mar 2004
Posts: 741
Location: Down Underland

PostPosted: Sun Jan 14, 2007 11:50 pm    Post subject: Reply with quote

Working overlay: http://pico.is.free.fr/pommed-overlay-2.tar.bz2, from this thread.
_________________
Proprietary is theft. Pierre-Joseph Proudhon, if he had a chance
Powered by a MacBook Pro
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Unsupported Software All times are GMT
Page 1 of 1

 
Jump to:  
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