what is best way to install a costum souch way that when i want to remove it i can do it clean?
ps: the app that i want to install is http://supertech.csail.mit.edu/cilk/
Here's a stab at it, say cilk-5.4.6.ebuildtuam wrote:Write an ebuild for it, and install it with emerge :wink:
FF,
Daniel
Code: Select all
# Copyright 1999-2008 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $
DESCRIPTION="Cilk is a language for multithreaded parallel programming based on ANSI C."
HOMEPAGE="http://supertech.csail.mit.edu/cilk/"
SRC_URI="http://supertech.csail.mit.edu/cilk/${P}.tar.gz"
LICENSE="GPL"
SLOT="0"
KEYWORDS="amd64 ~x86"
IUSE="doc"
DEPEND=""
RDEPEND=""
src_install() {
emake DESTDIR="${D}" install || die "Install failed."
dodoc doc/manual.pdf NEWS README THANKS
}

Yes, it works and tests fine under my ~amd64.DaNe wrote:is that ebuild a sketch or it works in fact?
Code: Select all
# Copyright 1999-2008 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $
inherit flag-o-matic
DESCRIPTION="Language for multithreaded parallel programming based on
ANSI C."
HOMEPAGE="http://supertech.csail.mit.edu/cilk/"
SRC_URI="http://supertech.csail.mit.edu/cilk/${P}.tar.gz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="amd64 ~x86"
IUSE="doc examples"
DEPEND=""
RDEPEND="doc? virtual/latex-base"
pkg_setup() {
filter-flags "-pipe"
filter-flags "-ggdb"
}
src_install() {
emake DESTDIR="${D}" install || die "Install failed."
if use doc; then
dodoc NEWS README THANKS
insinto /usr/share/doc/"${PF}"
doins doc/manual.pdf
fi
if use examples; then
insinto /usr/share/doc/"${PF}"/examples
doins examples/*.cilk
doins examples/*.c
doins examples/*.h
fi
}