- Update ebuild to behave correctly

- Add control file to create debian packages (still untested,
mantainer will be Marco)


git-svn-id: svn://svn.gna.org/svn/sgpemv2/trunk@1144 3ecf2c5c-341e-0410-92b4-d18e462d057c
This commit is contained in:
tchernobog 2006-09-14 11:50:23 +00:00
parent c39ecfed50
commit 5df227431b
2 changed files with 35 additions and 3 deletions

View file

@ -37,19 +37,27 @@ src_compile() {
mkdir build && cd build
../econf ${conf_opts} || die "configure failed"
../configure --prefix=/usr \
--host=${CHOST} \
--mandir=/usr/share/man \
--infodir=/usr/share/info \
--datadir=/usr/share \
--sysconfdir=/etc \
--localstatedir=/var/lib \
${EXTRA_ECONF} ${conf_opts} || die "configure failed"
emake || die "make all failed"
if use doc; then
make apidox
make pdf
fi
}
src_install() {
cd build
make install DESTDIR="${D}"
if use doc; then
dohtml -r doc/API
dohtml -r doc/API/html/*
dodoc AUTHORS COPYING NEWS README ChangeLog
docinto manuals
dodoc doc/sgpem2dman.pdf doc/sgpem2uman.pdf