Welcome, Guest. Please login or register. Did you miss your activation email?

Author Topic: Gentoo ebuild  (Read 9502 times)

0 Members and 1 Guest are viewing this topic.

radar

  • Newbie
  • *
  • Posts: 6
    • View Profile
    • http://pbox.radhuset.org/
Gentoo ebuild
« on: October 04, 2007, 11:50:21 pm »
Hi guys!

Thanks for the great SFML, it's working really great.
I'm working with S-Rave on our project which we use Gentoo for, so I wrote some ebuilds.

You can check them out in the viewvc: https://svn.radhuset.org/viewvc/pbox/pbox-portage/media-libs/sfml/
or checkout the code
Code: [Select]
svn co svn://svn.radhuset.org/pbox/pbox-portage/

These ebuilds works for me (at least the 1.1-ebuild  :wink: ). If you got any improvemets, attach a patch our trac at http://pbox.radhuset.org/ or just answer the thread  :D

EDIT: The reason I had to supply a patch for it to build on gentoo (via portage) is because your Makefiles doesn't support DESTDIR, and it probably should.

PS. Bump the version when you're releasing a new SFML, even if it's minor updates. It'll be easier for package managers to handle it, in portage you SHA256, MD5 and RMD160 hash the files and we don't want to bump the ebuild version. DS.

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32504
    • View Profile
    • SFML's website
    • Email
Gentoo ebuild
« Reply #1 on: October 05, 2007, 03:49:14 am »
This looks great, but what is an ebuild exactly ? :D
Laurent Gomila - SFML developer

radar

  • Newbie
  • *
  • Posts: 6
    • View Profile
    • http://pbox.radhuset.org/
Gentoo ebuild
« Reply #2 on: October 05, 2007, 11:14:51 am »
Quote from: "Laurent"
This looks great, but what is an ebuild exactly ? :D


Quote
When we talk about packages, we often mean software titles that are available to the Gentoo users through the Portage tree. The Portage tree is a collection of ebuilds, files that contain all information Portage needs to maintain software (install, search, query, ...). These ebuilds reside in /usr/portage by default.

Whenever you ask Portage to perform some action regarding software titles, it will use the ebuilds on your system as a base. It is therefore important that you regularly update the ebuilds on your system so Portage knows about new software, security updates, etc.


Took it right off gentoo.org. Portage is as you may think, the package manager for gentoo. The ebuilds describes where to fetch the source package, how to build and install it.

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32504
    • View Profile
    • SFML's website
    • Email
Gentoo ebuild
« Reply #3 on: October 05, 2007, 11:18:58 am »
Ok, so this is just like Debian or Mandriva packages (.deb and .rpm), right ?

If so, this is a really useful contribution :)
Laurent Gomila - SFML developer

radar

  • Newbie
  • *
  • Posts: 6
    • View Profile
    • http://pbox.radhuset.org/
Gentoo ebuild
« Reply #4 on: October 05, 2007, 03:43:13 pm »
Quote from: "Laurent"
Ok, so this is just like Debian or Mandriva packages (.deb and .rpm), right ?


Yes, it's like .deb and .rpm source packages, without containing the actual files :P

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32504
    • View Profile
    • SFML's website
    • Email
Gentoo ebuild
« Reply #5 on: October 05, 2007, 04:14:12 pm »
So it is actually downloading them from the official website ? You can't provide a 100% offline version ? Or do you just have to provide the files in a separate archive ?
Laurent Gomila - SFML developer

radar

  • Newbie
  • *
  • Posts: 6
    • View Profile
    • http://pbox.radhuset.org/
Gentoo ebuild
« Reply #6 on: October 05, 2007, 04:40:08 pm »
Quote from: "Laurent"
So it is actually downloading them from the official website ? You can't provide a 100% offline version ? Or do you just have to provide the files in a separate archive ?


You specify the url to download from in the ebuild so yes, it's actually downloading the archive from the website. You can build packages with the compiled and installed data in it, but it's nothing that I've tested. It dosen't exist so many binary packages either, only big ones like openoffice.

Aszarsha

  • Full Member
  • ***
  • Posts: 200
    • MSN Messenger - aszarsha@gmail.com
    • View Profile
Gentoo ebuild
« Reply #7 on: October 06, 2007, 04:13:55 am »
Quote
You can build packages with the compiled and installed data in it
Laurent, gentoo (as you know...) is a source based Linux distro, so distributing compiled packages is at its opposite philosophy; it would be weird. :P

As i'll make gentoo as my primiry OS soon, i'm glad to know that there's a gentoo ebuild. Thx !

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32504
    • View Profile
    • SFML's website
    • Email
Gentoo ebuild
« Reply #8 on: October 06, 2007, 09:59:24 am »
Quote
Laurent, gentoo (as you know...) is a source based Linux distro

I don't ;)
I'm mainly a Windows user, in fact I installed Linux just to develop the Linux port of SFML.
Laurent Gomila - SFML developer

 

anything