Difference between revisions of "CompilingGentoo"

From Inkscape Wiki
Jump to navigation Jump to search
Line 3: Line 3:
As it can take some time until the official ebuild has made it through rsync, here is it. Just save it into your overlay inkscape directory (see below) and name it 'inkscape-0.44.ebuild'.
As it can take some time until the official ebuild has made it through rsync, here is it. Just save it into your overlay inkscape directory (see below) and name it 'inkscape-0.44.ebuild'.


# Copyright 1999-2006 Gentoo Foundation
<pre>
# Distributed under the terms of the GNU General Public License v2
# Copyright 1999-2006 Gentoo Foundation
# $Header: $
# Distributed under the terms of the GNU General Public License v2
# $Header: $


inherit gnome2 eutils
inherit gnome2 eutils


DESCRIPTION="A SVG based generic vector-drawing program"
DESCRIPTION="A SVG based generic vector-drawing program"
HOMEPAGE="http://www.inkscape.org/"
HOMEPAGE="http://www.inkscape.org/"
SRC_URI="mirror://sourceforge/${PN}/${P}.tar.bz2"
SRC_URI="mirror://sourceforge/${PN}/${P}.tar.bz2"


SLOT="0"
SLOT="0"
LICENSE="GPL-2 LGPL-2.1"
LICENSE="GPL-2 LGPL-2.1"
KEYWORDS="~amd64 ~ppc ~ppc64 ~sparc ~x86"
KEYWORDS="~amd64 ~ppc ~ppc64 ~sparc ~x86"
IUSE="gnome mmx bonobo inkjar lcms boost doc plugin spell"
IUSE="gnome mmx bonobo inkjar lcms boost doc plugin spell"


RDEPEND=">=x11-libs/gtk+-2.4.1
RDEPEND=">=x11-libs/gtk+-2.4.1
>=dev-libs/glib-2.6.5
>=dev-libs/glib-2.6.5
>=media-libs/libart_lgpl-2.3.16
>=media-libs/libart_lgpl-2.3.16
>=dev-libs/libxml2-2.6.20
>=dev-libs/libxml2-2.6.20
  >=x11-libs/pango-1.4.0
>=x11-libs/pango-1.4.0
>=dev-libs/libxslt-1.0.15
>=dev-libs/libxslt-1.0.15
        dev-perl/SVG
dev-perl/SVG
dev-perl/XML-Parser
dev-perl/XML-Parser
dev-perl/XML-XQL  
dev-perl/XML-XQL  
dev-python/pyxml
dev-python/pyxml
virtual/xft
virtual/xft
dev-libs/popt
dev-libs/popt
media-libs/fontconfig
media-libs/fontconfig
sys-libs/zlib
sys-libs/zlib
media-libs/libpng
media-libs/libpng
>=sys-devel/gcc-3
>=sys-devel/gcc-3
>=dev-libs/libsigc++-2.0.12
>=dev-libs/libsigc++-2.0.12
>=dev-cpp/gtkmm-2.4
>=dev-cpp/gtkmm-2.4
dev-cpp/glibmm
dev-cpp/glibmm
>=dev-libs/boehm-gc-6.4
>=dev-libs/boehm-gc-6.4
gnome? ( >=gnome-base/gnome-vfs-2.0 )
gnome? ( >=gnome-base/gnome-vfs-2.0 )
lcms? ( >=media-libs/lcms-1.13 )
lcms? ( >=media-libs/lcms-1.13 )
  boost? ( >=dev-libs/boost )
boost? ( >=dev-libs/boost )
plugin? ( >=media-gfx/pstoedit-3.33
plugin? ( >=media-gfx/pstoedit-3.33
          >=media-gfx/skencil-0.6.16
          >=media-gfx/skencil-0.6.16
  media-libs/libwmf
  media-libs/libwmf
  app-office/dia )
  app-office/dia )
spell? ( app-text/gtkspell )"
spell? ( app-text/gtkspell )"
DEPEND="${RDEPEND}
  sys-devel/gettext
dev-util/pkgconfig
>=dev-util/intltool-0.29"
G2CONF="${G2CONF} --with-xft"
G2CONF="${G2CONF} `use_with spell gtkspell`"
use mmx || G2CONF="${G2CONF} --disable-mmx"
use inkjar || G2CONF="${G2CONF} --without-inkjar"
use gnome && G2CONF="${G2CONF} --with-gnome-vfs"
use lcms || G2CONF="${G2CONF} --disable-lcms"
src_unpack() {
unpack ${A}
cd ${S}
autoconf || die
libtoolize --copy --force || die
}


DOCS="AUTHORS COPYING ChangeLog HACKING NEWS README"
DEPEND="${RDEPEND}
sys-devel/gettext
dev-util/pkgconfig
>=dev-util/intltool-0.29"
 
G2CONF="${G2CONF} --with-xft"
G2CONF="${G2CONF} `use_with spell gtkspell`"
use mmx || G2CONF="${G2CONF} --disable-mmx"
use inkjar || G2CONF="${G2CONF} --without-inkjar"
use gnome && G2CONF="${G2CONF} --with-gnome-vfs"
use lcms || G2CONF="${G2CONF} --disable-lcms"
 
src_unpack() {
unpack ${A}
 
cd ${S}
 
autoconf || die
libtoolize --copy --force || die
}
 
DOCS="AUTHORS COPYING ChangeLog HACKING NEWS README"
</pre>


== Inkscape CVS on Gentoo Linux ==
== Inkscape CVS on Gentoo Linux ==

Revision as of 16:05, 13 October 2007

Inkscape-0.44 on Gentoo Linux

As it can take some time until the official ebuild has made it through rsync, here is it. Just save it into your overlay inkscape directory (see below) and name it 'inkscape-0.44.ebuild'.

# Copyright 1999-2006 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $

inherit gnome2 eutils

DESCRIPTION="A SVG based generic vector-drawing program"
HOMEPAGE="http://www.inkscape.org/"
SRC_URI="mirror://sourceforge/${PN}/${P}.tar.bz2"

SLOT="0"
LICENSE="GPL-2 LGPL-2.1"
KEYWORDS="~amd64 ~ppc ~ppc64 ~sparc ~x86"
IUSE="gnome mmx bonobo inkjar lcms boost doc plugin spell"

RDEPEND=">=x11-libs/gtk+-2.4.1
	>=dev-libs/glib-2.6.5
	>=media-libs/libart_lgpl-2.3.16
	>=dev-libs/libxml2-2.6.20
 	>=x11-libs/pango-1.4.0
	>=dev-libs/libxslt-1.0.15
	dev-perl/SVG
	dev-perl/XML-Parser
	dev-perl/XML-XQL 
	dev-python/pyxml
	virtual/xft
	dev-libs/popt
	media-libs/fontconfig
	sys-libs/zlib
	media-libs/libpng
	>=sys-devel/gcc-3
	>=dev-libs/libsigc++-2.0.12
	>=dev-cpp/gtkmm-2.4
	dev-cpp/glibmm
	>=dev-libs/boehm-gc-6.4
	gnome? ( >=gnome-base/gnome-vfs-2.0 )
	lcms? ( >=media-libs/lcms-1.13 )
 	boost? ( >=dev-libs/boost )
	plugin? ( >=media-gfx/pstoedit-3.33
	          >=media-gfx/skencil-0.6.16
		  media-libs/libwmf
		  app-office/dia )
	spell? ( app-text/gtkspell )"

DEPEND="${RDEPEND}
 	sys-devel/gettext
	dev-util/pkgconfig
	>=dev-util/intltool-0.29"

G2CONF="${G2CONF} --with-xft"
G2CONF="${G2CONF} `use_with spell gtkspell`"
use mmx || G2CONF="${G2CONF} --disable-mmx"
use inkjar || G2CONF="${G2CONF} --without-inkjar"
use gnome && G2CONF="${G2CONF} --with-gnome-vfs"
use lcms || G2CONF="${G2CONF} --disable-lcms"

src_unpack() {
	unpack ${A}

	cd ${S}

	autoconf || die
	libtoolize --copy --force || die
}

DOCS="AUTHORS COPYING ChangeLog HACKING NEWS README"

Inkscape CVS on Gentoo Linux

The CVS ebuild of Inkscape makes getting the latest copy as easy as "emerge inkscape-cvs" : )

How to do it

  • If you have not already done so,set up a portage overlay. http://www.gentoo.org/doc/en/handbook/handbook-x86.xml?part=3&chap=5#doc_chap2
  • Download and save the ebuild to media-gfx/inkscape-cvs/inkscape-cvs-0.42.ebuild inside your portage overlay (you will need to create those directories if you haven't already done so). http://inkscape.org/doc/inkscape-cvs-0.42.ebuild
  • Open a console and as root run 'ebuild <portage overlay>/media-gfx/inkscape-cvs/inkscape-cvs-0.42.ebuild digest' (substitute <portage overlay> with your portage overlay directory
  • Now run 'echo "media-gfx/inkscape-cvs ~x86" >> /etc/portage/package.keywords' (change "~x86" for whatever architecture you're on).
  • Now you can simply run 'emerge inkscape-cvs' to get the latest CVS version of Inkscape!