summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJustin Lecher <jlec@gentoo.org>2010-11-02 08:37:41 +0000
committerJustin Lecher <jlec@gentoo.org>2010-11-02 08:37:41 +0000
commitdfbb5248416aff5f9b6fc0a790db2325396c0bfd (patch)
tree2e5fdd139ad01c9ccb6313bb728b5a41012a381b /sci-libs/punc
parentBump EAPI (diff)
downloadgentoo-2-dfbb5248416aff5f9b6fc0a790db2325396c0bfd.tar.gz
gentoo-2-dfbb5248416aff5f9b6fc0a790db2325396c0bfd.tar.bz2
gentoo-2-dfbb5248416aff5f9b6fc0a790db2325396c0bfd.zip
Fixed automagic doxygen usage
(Portage version: 2.1.9.24/cvs/Linux x86_64)
Diffstat (limited to 'sci-libs/punc')
-rw-r--r--sci-libs/punc/ChangeLog6
-rw-r--r--sci-libs/punc/files/1.4-doc.patch20
-rw-r--r--sci-libs/punc/punc-1.4.ebuild41
3 files changed, 53 insertions, 14 deletions
diff --git a/sci-libs/punc/ChangeLog b/sci-libs/punc/ChangeLog
index 17f190b710fb..7ba233d4987e 100644
--- a/sci-libs/punc/ChangeLog
+++ b/sci-libs/punc/ChangeLog
@@ -1,6 +1,10 @@
# ChangeLog for sci-libs/punc
# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/sci-libs/punc/ChangeLog,v 1.5 2010/10/31 15:01:09 jlec Exp $
+# $Header: /var/cvsroot/gentoo-x86/sci-libs/punc/ChangeLog,v 1.6 2010/11/02 08:37:41 jlec Exp $
+
+ 02 Nov 2010; Justin Lecher <jlec@gentoo.org> +files/1.4-doc.patch,
+ punc-1.4.ebuild:
+ Fixed automagic doxygen usage
31 Oct 2010; Justin Lecher <jlec@gentoo.org> files/1.4-linking.patch:
Added missing linking libs
diff --git a/sci-libs/punc/files/1.4-doc.patch b/sci-libs/punc/files/1.4-doc.patch
new file mode 100644
index 000000000000..ad17da322f17
--- /dev/null
+++ b/sci-libs/punc/files/1.4-doc.patch
@@ -0,0 +1,20 @@
+diff --git a/doc/doxygen/Makefile.am b/doc/doxygen/Makefile.am
+index ca42fe0..264ba82 100644
+--- a/doc/doxygen/Makefile.am
++++ b/doc/doxygen/Makefile.am
+@@ -29,13 +29,11 @@
+ ## Author: Michael Holst
+ ## ###########################################################################
+
+-docdir = @prefix@/doc/punc
+-
+ doc_DATA = punc_doc
+
+ punc_doc:
+ $(doxygen_path) $(top_srcdir)/doc/doxygen/punc.dox
+
+ install-docDATA:
+- mkdir -p $(docdir)
+- cp -r ../api $(docdir)/
++ mkdir -p $(DESTDIR)/@docdir@
++ cp -r ../api $(DESTDIR)/@docdir@/
diff --git a/sci-libs/punc/punc-1.4.ebuild b/sci-libs/punc/punc-1.4.ebuild
index 6fd674aadda6..e55fd253e103 100644
--- a/sci-libs/punc/punc-1.4.ebuild
+++ b/sci-libs/punc/punc-1.4.ebuild
@@ -1,6 +1,6 @@
# Copyright 1999-2010 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/sci-libs/punc/punc-1.4.ebuild,v 1.1 2010/10/31 13:30:08 jlec Exp $
+# $Header: /var/cvsroot/gentoo-x86/sci-libs/punc/punc-1.4.ebuild,v 1.2 2010/11/02 08:37:41 jlec Exp $
EAPI="3"
@@ -13,9 +13,9 @@ SRC_URI="http://www.fetk.org/codes/download/${P}.tar.gz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~x86"
-IUSE="debug mpi static-libs"
+IUSE="debug doc mpi static-libs"
-DEPEND="
+RDEPEND="
dev-libs/maloc[mpi=]
dev-libs/libf2c
sci-libs/amd
@@ -25,14 +25,19 @@ DEPEND="
sci-libs/umfpack
virtual/blas
mpi? ( virtual/mpi )"
-RDEPEND="${DEPEND}"
+DEPEND="
+ ${RDEPEND}
+ doc? (
+ media-gfx/graphviz
+ app-doc/doxygen )"
S="${WORKDIR}/${PN}"
src_prepare() {
rm -rf src/{amd,blas,lapack,arpack,superlu,umfpack}
epatch \
- "${FILESDIR}"/${PV}-linking.patch
+ "${FILESDIR}"/${PV}-linking.patch \
+ "${FILESDIR}"/${PV}-doc.patch
cp tools/tests/pmg/*.f src/pmg/ -f
cp tools/tests/pmg/*.c src/pmg/ -f
@@ -42,21 +47,31 @@ src_prepare() {
}
src_configure() {
- export FETK_INCLUDE="${EPREFIX}/usr/include"
- export FETK_LIBRARY="${EPREFIX}/usr/$(get_libdir)"
+ local fetk_include
+ local fetk_lib
+ local myconf
+
+ use doc || myconf="${myconf} --with-doxygen= --with-dot="
+
+ fetk_include="${EPREFIX}"/usr/include
+ fetk_lib="${EPREFIX}"/usr/$(get_libdir)
+ export FETK_INCLUDE="${fetk_include}"
+ export FETK_LIBRARY="${fetk_lib}"
export FETK_LAPACK_LIBRARY="$(pkg-config --libs lapack)"
- export FETK_BLAS_LIBRARY="${FETK_LIBRARY}"
+ export FETK_BLAS_LIBRARY="${fetk_lib}"
export FETK_SUPERLU_LIBRARY="-lsuperlu"
- export FETK_ARPACK_LIBRARY="${EPREFIX}/usr/$(get_libdir)"
- export FETK_UMFPACK_LIBRARY="${EPREFIX}/usr/$(get_libdir)"
- export FETK_CGCODE_LIBRARY="${EPREFIX}/usr/$(get_libdir)"
- export FETK_AMD_LIBRARY="${EPREFIX}/usr/$(get_libdir)"
+ export FETK_ARPACK_LIBRARY="${fetk_lib}"
+ export FETK_UMFPACK_LIBRARY="${fetk_lib}"
+ export FETK_CGCODE_LIBRARY="${fetk_lib}"
+ export FETK_AMD_LIBRARY="${fetk_lib}"
econf \
$(use_enable static-libs static) \
$(use_enable debug vdebug) \
--enable-shared \
- --disable-triplet
+ --docdir="${EPREFIX}"/usr/share/doc/${PF} \
+ --disable-triplet \
+ ${myconf}
}
src_install() {