Difference between revisions of "Dev:Gentoo Ebuilds"

From Synfig Studio :: Documentation
Jump to: navigation, search
m (Text replace - ']]' to '}}')
 
(2 intermediate revisions by 2 users not shown)
Line 1: Line 1:
 
<!--Categories-->
 
<!--Categories-->
{{l|Category:Building}}
+
{{Category|Building}}
  
We're working on ebuild files for the Gentoo operating system here. To use this page directly with Gentoo, you need to know how Portage works. Specifically:
+
We're working on ebuild files for the Gentoo operating system here. To use this page directly with Gentoo, you need to know how Portage works. You can either create a new local overlay and put there the ebuilds from the Gentoo BugZilla (faster) or use the sunrise overlay (easier).
* Create a Portage overlay so these ebuilds won't be clobbered by an emerge sync
+
* Cut out each ebuild and put it in the proper place in the overlay.
+
* Find mistakes in the ebuilds, and post fixes here
+
  
= Release-version ebuilds in Gentoo's BugZilla =
+
To create a Portage overlay (so these ebuilds won't be clobbered by an emerge sync). You can follow [http://www.gentoo-wiki.info/HOWTO_Installing_3rd_Party_Ebuilds this] and read more information [http://en.gentoo-wiki.com/wiki/Overlay here].
  
These are also in gentoo's sunrise overlay.
+
= Ebuilds in Gentoo's BugZilla =
  
'''synfig-studio''' (-> /overlay/media-gfx/synfig-studio)
+
These are also in gentoo's sunrise overlay. More information on now to add it [http://overlays.gentoo.org/proj/sunrise here].
 +
You can choose to install the release versions (package-x.xx.xx) (stable) or the development version (-9999) (unstable)
 +
 
 +
'''synfigstudio''' (media-gfx/synfigstudio)
  
 
   http://bugs.gentoo.org/show_bug.cgi?id=111279
 
   http://bugs.gentoo.org/show_bug.cgi?id=111279
  
'''synfig''' (-> /overlay/media-gfx/synfig)
+
'''synfig''' (media-gfx/synfig)
  
 
   http://bugs.gentoo.org/show_bug.cgi?id=111278
 
   http://bugs.gentoo.org/show_bug.cgi?id=111278
  
'''ETL''' (-> /overlay/dev-cpp/ETL)
+
'''ETL''' (dev-cpp/ETL)
  
 
   http://bugs.gentoo.org/show_bug.cgi?id=111277
 
   http://bugs.gentoo.org/show_bug.cgi?id=111277
  
= Short howto =
+
= Howto for both release and development ebuilds =
 
+
Please check this [http://gentoo-wiki.com/HOWTO_Installing_3rd_Party_Ebuilds Howto Install 3rd Party Ebuilds] first
+
 
+
1. make digests in your '''overlay''' directory i.e.:
+
  '''ebuild''' /overlay/media-gfx/synfig-studio/synfig-studio-0.61.05.ebuild '''digest'''
+
  ...
+
 
+
2. this goes in the '''/etc/portage/package.use'''
+
  media-gfx/synfig  ffmpeg freetype imagemagick libdv openexr
+
 
+
3. emerge -av synfig-studio
+
 
+
= SVN Ebuilds =
+
 
+
== dev-cpp/ETL-svn ==
+
 
+
<pre>
+
DESCRIPTION="ETL is a multiplatform class and template library designed to
+
complement and supplement the C++ STL. (SVN-sources)"
+
HOMEPAGE="http://synfig.org/"
+
SRC_URI=""
+
 
+
LICENSE="GPL-2"
+
SLOT="0"
+
KEYWORDS="~amd64 ~x86"
+
IUSE=""
+
 
+
DEPEND=""
+
 
+
PROVIDE="virtual/ETL"
+
 
+
ESVN_REPO_URI="https://synfig.svn.sourceforge.net/svnroot/synfig/ETL/trunk/"
+
ESVN_PROJECT="${PN}"
+
 
+
inherit eutils
+
inherit subversion
+
 
+
src_compile() {
+
        autoreconf -if
+
        econf || die
+
}
+
 
+
src_install() {
+
        make DESTDIR="${D}" install || die
+
}
+
</pre>
+
 
+
 
+
== media-gfx/synfig-svn ==
+
 
+
<pre>
+
DESCRIPTION="Synfig: Film-Quality Vector Animation (core engine, SVN-sources)"
+
HOMEPAGE="http://synfig.org/"
+
SRC_URI=""
+
 
+
LICENSE="GPL-2"
+
SLOT="0"
+
KEYWORDS="~amd64 ~x86"
+
IUSE="tiff jpeg png freetype fontconfig openexr ffmpeg debug"
+
 
+
DEPEND="dev-cpp/libxmlpp
+
        dev-libs/libsigc++
+
sys-devel/libtool
+
dev-util/cvs
+
png? ( media-libs/libpng )
+
tiff? ( media-libs/tiff )
+
jpeg? ( media-libs/jpeg )
+
imagemagick? ( media-gfx/imagemagick )
+
freetype? ( media-libs/freetype )
+
fontconfig? ( media-libs/fontconfig )
+
openexr? ( media-libs/openexr )
+
ffmpeg? ( media-video/ffmpeg )
+
+
        virtual/ETL"
+
 
+
PROVIDE="virtual/synfig"
+
 
+
ESVN_REPO_URI="https://synfig.svn.sourceforge.net/svnroot/synfig/synfig-core/trunk"
+
ESVN_PROJECT="${PN}"
+
 
+
inherit subversion
+
 
+
 
+
src_compile() {
+
libtoolize --ltdl --copy -f
+
autoreconf -if
+
econf \
+
$(use_enable ffmpeg) \
+
$(use_enable libdv) \
+
$(use_enable imagemagick) \
+
$(use_enable ffmpeg libavcodec) \
+
$(use_enable freetype) \
+
        $(use_enable debug) \
+
|| die
+
emake || die
+
}
+
 
+
src_install() {
+
make DESTDIR="${D}" install || die
+
}
+
</pre>
+
 
+
== media-gfx/synfig-studio-svn ==
+
  
<pre>
+
Please check this [http://www.gentoo-wiki.info/HOWTO_Installing_3rd_Party_Ebuilds HOWTO Installing 3rd Party Ebuilds] first.
DESCRIPTION="Synfig: Film-Quality Vector Animation (main UI, SVN-sources)"
+
We will say "/overlay" as path to your overlay. This tipically would be "/usr/local/portage".
HOMEPAGE="http://synfig.org/"
+
SRC_URI=""
+
  
LICENSE="GPL-2"
+
1. Make the directories needed in your overlay:
SLOT="0"
+
  '''mkdir''' /overlay/dev-cpp/ETL /overlay/media-gfx/synfig /overlay/media-gfx/synfigstudio
KEYWORDS="~amd64 ~x86"
+
IUSE=""
+
  
DEPEND=">=dev-cpp/gtkmm-2.4
+
2. Go to the links above in the Gentoo BugZilla and download the ebuilds for the last release or the development version for all the packages (ETL, synfig and synfigstudio).
        virtual/synfig
+
!media-gfx/synfig-studio"
+
  
 +
3. Copy your downloaded ebuilds into the appropiate directories:
 +
  '''ETL''' -> /overlay/dev-cpp/ETL
 +
  '''synfig''' -> /overlay/media-gfx/synfig
 +
  '''synfigstudio''' -> /overlay/media-gfx/synfigstudio
  
ESVN_REPO_URI="https://synfig.svn.sourceforge.net/svnroot/synfig/synfig-studio/trunk"
+
4. Make digests for them. ie::
ESVN_PROJECT="${PN}"
+
  '''ebuild''' /overlay/dev-cpp/ETL/ETL-0.04.13.ebuild '''digest'''
 +
  '''ebuild''' /overlay/media-gfx/synfig/synfig-0.62.00.ebuild '''digest'''
 +
  '''ebuild''' /overlay/media-gfx/synfigstudio/synfigstudio-0.62.00.ebuild '''digest'''
  
inherit subversion
+
5. Edit your '''/etc/portage/package.use''' and add:
 +
  media-gfx/synfig  ffmpeg freetype imagemagick dv openexr
  
src_compile() {
+
6. Unmask the packages for your architecture if needed adding to your '''/etc/portage/packages.keywords''':
autoreconf -if
+
  dev-cpp/ETL
econf || die
+
  media-gfx/synfig
emake || die
+
  media-gfx/synfigstudio
}
+
  
src_install() {
+
7. Happily compile:
make DESTDIR="${D}" install || die
+
  emerge -av synfigstudio
}
+
</pre>
+

Latest revision as of 11:46, 20 February 2010


We're working on ebuild files for the Gentoo operating system here. To use this page directly with Gentoo, you need to know how Portage works. You can either create a new local overlay and put there the ebuilds from the Gentoo BugZilla (faster) or use the sunrise overlay (easier).

To create a Portage overlay (so these ebuilds won't be clobbered by an emerge sync). You can follow this and read more information here.

Ebuilds in Gentoo's BugZilla

These are also in gentoo's sunrise overlay. More information on now to add it here. You can choose to install the release versions (package-x.xx.xx) (stable) or the development version (-9999) (unstable)

synfigstudio (media-gfx/synfigstudio)

 http://bugs.gentoo.org/show_bug.cgi?id=111279

synfig (media-gfx/synfig)

 http://bugs.gentoo.org/show_bug.cgi?id=111278

ETL (dev-cpp/ETL)

 http://bugs.gentoo.org/show_bug.cgi?id=111277

Howto for both release and development ebuilds

Please check this HOWTO Installing 3rd Party Ebuilds first. We will say "/overlay" as path to your overlay. This tipically would be "/usr/local/portage".

1. Make the directories needed in your overlay:

 mkdir /overlay/dev-cpp/ETL /overlay/media-gfx/synfig /overlay/media-gfx/synfigstudio

2. Go to the links above in the Gentoo BugZilla and download the ebuilds for the last release or the development version for all the packages (ETL, synfig and synfigstudio).

3. Copy your downloaded ebuilds into the appropiate directories:

 ETL -> /overlay/dev-cpp/ETL
 synfig -> /overlay/media-gfx/synfig
 synfigstudio -> /overlay/media-gfx/synfigstudio

4. Make digests for them. ie::

 ebuild /overlay/dev-cpp/ETL/ETL-0.04.13.ebuild digest
 ebuild /overlay/media-gfx/synfig/synfig-0.62.00.ebuild digest
 ebuild /overlay/media-gfx/synfigstudio/synfigstudio-0.62.00.ebuild digest

5. Edit your /etc/portage/package.use and add:

 media-gfx/synfig  ffmpeg freetype imagemagick dv openexr

6. Unmask the packages for your architecture if needed adding to your /etc/portage/packages.keywords:

 dev-cpp/ETL
 media-gfx/synfig
 media-gfx/synfigstudio

7. Happily compile:

 emerge -av synfigstudio