From 290360c3b09bfddac29d4b95280048b03cb8012f Mon Sep 17 00:00:00 2001 From: tchernobog Date: Thu, 14 Sep 2006 10:46:36 +0000 Subject: [PATCH] - Update ebuild git-svn-id: svn://svn.gna.org/svn/sgpemv2/trunk@1140 3ecf2c5c-341e-0410-92b4-d18e462d057c --- distro/ebuild/sgpemv2-0.00.ebuild | 57 +++++++++++++++++++++++++++++++ distro/gentoo/sgpemv2-0.00.ebuild | 27 --------------- 2 files changed, 57 insertions(+), 27 deletions(-) create mode 100644 distro/ebuild/sgpemv2-0.00.ebuild delete mode 100644 distro/gentoo/sgpemv2-0.00.ebuild diff --git a/distro/ebuild/sgpemv2-0.00.ebuild b/distro/ebuild/sgpemv2-0.00.ebuild new file mode 100644 index 0000000..0b8f0d6 --- /dev/null +++ b/distro/ebuild/sgpemv2-0.00.ebuild @@ -0,0 +1,57 @@ +# Copyright 1999-2006 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ + +DESCRIPTION="A graphical process management simulator for a multitasking +computer, developed with educational aims for Operating Systems courses at +universities" +HOMEPAGE="http://www.smoking-gnu.net/xhtml/projects.php?sgpemv2" +SRC_URI="http://www.smoking-gnu.net/res/tar-pit/sgpemv2/${P}.tar.bz2" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~x86" +IUSE="debug doc" + +DEPEND=" + >=dev-cpp/gtkmm-2.8 + >=dev-cpp/glibmm-2.8 + >=dev-cpp/libglademm-2.6 + >=dev-libs/libxml2-2.6.10 + >=x11-libs/cairo-1.0 + >=dev-lang/swig-1.3 + >=dev-lang/python-2.3 + + doc? ( + app-doc/doxygen + app-text/tetex + sys-apps/texinfo + )" + +src_compile() { + if use debug; then + conf_opts="--enable-debug" + else + conf_opts="--disable-tests" + fi + + mkdir build && cd build + + ../econf ${conf_opts} || die "configure failed" + emake || die "make all failed" + + if use doc; then + make apidox + make pdf + fi +} + +src_install() { + make install DESTDIR="${D}" + if use doc; then + dohtml -r doc/API + dodoc AUTHORS COPYING NEWS README ChangeLog + docinto manuals + dodoc doc/sgpem2dman.pdf doc/sgpem2uman.pdf + fi +} diff --git a/distro/gentoo/sgpemv2-0.00.ebuild b/distro/gentoo/sgpemv2-0.00.ebuild deleted file mode 100644 index 8e48d8d..0000000 --- a/distro/gentoo/sgpemv2-0.00.ebuild +++ /dev/null @@ -1,27 +0,0 @@ -# Copyright 1999-2006 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: $ - -DESCRIPTION="" -HOMEPAGE="" -SRC_URI="" - -LICENSE="GPL-2" -SLOT="0" -KEYWORDS="~x86" -IUSE="debug" - -DEPEND="" -RDEPEND="" - -src_compile() { - if use debug; then - conf_opts="--enable-tests" - else - conf_opts="--disable-tests" - fi - - econf ${conf_opts} || die "configure failed" - emake || die "make all failed" -} -