summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobin H. Johnson <robbat2@gentoo.org>2015-08-08 13:49:04 -0700
committerRobin H. Johnson <robbat2@gentoo.org>2015-08-08 17:38:18 -0700
commit56bd759df1d0c750a065b8c845e93d5dfa6b549d (patch)
tree3f91093cdb475e565ae857f1c5a7fd339e2d781e /sci-libs/metis
downloadgentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.tar.gz
gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.tar.bz2
gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.zip
proj/gentoo: Initial commit
This commit represents a new era for Gentoo: Storing the gentoo-x86 tree in Git, as converted from CVS. This commit is the start of the NEW history. Any historical data is intended to be grafted onto this point. Creation process: 1. Take final CVS checkout snapshot 2. Remove ALL ChangeLog* files 3. Transform all Manifests to thin 4. Remove empty Manifests 5. Convert all stale $Header$/$Id$ CVS keywords to non-expanded Git $Id$ 5.1. Do not touch files with -kb/-ko keyword flags. Signed-off-by: Robin H. Johnson <robbat2@gentoo.org> X-Thanks: Alec Warner <antarus@gentoo.org> - did the GSoC 2006 migration tests X-Thanks: Robin H. Johnson <robbat2@gentoo.org> - infra guy, herding this project X-Thanks: Nguyen Thai Ngoc Duy <pclouds@gentoo.org> - Former Gentoo developer, wrote Git features for the migration X-Thanks: Brian Harring <ferringb@gentoo.org> - wrote much python to improve cvs2svn X-Thanks: Rich Freeman <rich0@gentoo.org> - validation scripts X-Thanks: Patrick Lauer <patrick@gentoo.org> - Gentoo dev, running new 2014 work in migration X-Thanks: Michał Górny <mgorny@gentoo.org> - scripts, QA, nagging X-Thanks: All of other Gentoo developers - many ideas and lots of paint on the bikeshed
Diffstat (limited to 'sci-libs/metis')
-rw-r--r--sci-libs/metis/Manifest2
-rw-r--r--sci-libs/metis/files/metis-4.0.1-autotools.patch85
-rw-r--r--sci-libs/metis/files/metis-5.1.0-datatype.patch12
-rw-r--r--sci-libs/metis/files/metis-5.1.0-multilib.patch20
-rw-r--r--sci-libs/metis/files/metis-5.1.0-shared-GKlib.patch21
-rw-r--r--sci-libs/metis/metadata.xml12
-rw-r--r--sci-libs/metis/metis-4.0.3.ebuild35
-rw-r--r--sci-libs/metis/metis-5.1.0-r1.ebuild73
8 files changed, 260 insertions, 0 deletions
diff --git a/sci-libs/metis/Manifest b/sci-libs/metis/Manifest
new file mode 100644
index 000000000000..9ee6fcb6cadb
--- /dev/null
+++ b/sci-libs/metis/Manifest
@@ -0,0 +1,2 @@
+DIST metis-4.0.3.tar.gz 522624 SHA256 5efa35de80703c1b2c4d0de080fafbcf4e0d363a21149a1ad2f96e0144841a55 SHA512 3d1388120c9c94bac6a20e2d38d6022c241bb6094cf71e31decf019d5500d2037716c6d615c5db69b536348a54e43f321c33ecfa25335fa6c84e412be227e332 WHIRLPOOL 0459d9641e5e9cacfb6392e621c42fb382198790c73b09f58fa4a9c1490d98c0baed46be8f7b02b9b81c9f054cff8491d02a38a5ee21ed98c5eba82d6d38a948
+DIST metis-5.1.0.tar.gz 4984968 SHA256 76faebe03f6c963127dbb73c13eab58c9a3faeae48779f049066a21c087c5db2 SHA512 deea47749d13bd06fbeaf98a53c6c0b61603ddc17a43dae81d72c8015576f6495fd83c11b0ef68d024879ed5415c14ebdbd87ce49c181bdac680573bea8bdb25 WHIRLPOOL 27c7a86c8d31e3d09a70eeea989b7b51e3175309e70513fcf13e00de546148a4b7d696a244656fc514b8c2636fe79b91d0fce29ae35a52ceb059dc831f24ef7e
diff --git a/sci-libs/metis/files/metis-4.0.1-autotools.patch b/sci-libs/metis/files/metis-4.0.1-autotools.patch
new file mode 100644
index 000000000000..b9623dd9ebf4
--- /dev/null
+++ b/sci-libs/metis/files/metis-4.0.1-autotools.patch
@@ -0,0 +1,85 @@
+--- configure.ac 1970-01-01 01:00:00.000000000 +0100
++++ configure.ac 2008-03-25 10:05:57.090715324 +0000
+@@ -0,0 +1,15 @@
++# -*- Autoconf -*-
++AC_PREREQ(2.59)
++AC_INIT(metis, 4.0.1, karypis@cs.umn.edu)
++AM_INIT_AUTOMAKE([foreign])
++AC_CONFIG_HEADER([config.h])
++AC_PROG_INSTALL
++AC_PROG_LIBTOOL
++AC_CHECK_LIB(m, sqrt)
++AC_CONFIG_FILES([
++ Makefile
++ metis.pc
++ Lib/Makefile
++ Programs/Makefile\
++ Test/Makefile])
++AC_OUTPUT
+--- metis.pc.in 1970-01-01 01:00:00.000000000 +0100
++++ metis.pc.in 2008-02-15 14:45:09.378997263 +0000
+@@ -0,0 +1,10 @@
++prefix=@prefix@
++exec_prefix=@exec_prefix@
++libdir=@libdir@
++includedir=@includedir@
++
++Name: METIS
++Description: Software for partioning unstructured graphes and meshes
++Version: @VERSION@
++Libs: -L${libdir} -lmetis
++Cflags: -I${includedir}/metis
+--- Makefile.am 1970-01-01 01:00:00.000000000 +0100
++++ Makefile.am 2008-02-15 14:46:16.578826763 +0000
+@@ -0,0 +1,5 @@
++SUBDIRS = Lib Programs Test
++EXTRA_DIST = CHANGES VERSION metis.pc.in
++
++pkgconfigdir = $(libdir)/pkgconfig
++pkgconfig_DATA = metis.pc
+--- Lib/Makefile.am 1970-01-01 01:00:00.000000000 +0100
++++ Lib/Makefile.am 2008-03-25 10:06:10.719491984 +0000
+@@ -0,0 +1,15 @@
++pkginclude_HEADERS = defs.h macros.h metis.h proto.h rename.h struct.h
++pkgincludedir = $(includedir)/metis
++lib_LTLIBRARIES = libmetis.la
++libmetis_la_SOURCES = \
++ coarsen.c fm.c initpart.c match.c ccgraph.c memory.c \
++ pmetis.c pqueue.c refine.c util.c timing.c debug.c \
++ bucketsort.c graph.c stat.c kmetis.c kwayrefine.c \
++ kwayfm.c balance.c ometis.c srefine.c sfm.c separator.c \
++ mincover.c mmd.c mesh.c meshpart.c frename.c fortran.c \
++ myqsort.c compress.c parmetis.c estmem.c \
++ mpmetis.c mcoarsen.c mmatch.c minitpart.c mbalance.c \
++ mrefine.c mutil.c mfm.c mkmetis.c mkwayrefine.c mkwayfmh.c \
++ mrefine2.c minitpart2.c mbalance2.c mfm2.c \
++ kvmetis.c kwayvolrefine.c kwayvolfm.c subdomains.c
++libmetis_la_LDFLAGS = -no-undefined -version-info 4:0:0
+--- Programs/Makefile.am 1970-01-01 01:00:00.000000000 +0100
++++ Programs/Makefile.am 2008-01-31 12:00:14.981124649 +0000
+@@ -0,0 +1,15 @@
++AM_CPPFLAGS = -I$(top_srcdir)/Lib
++LDADD = $(top_builddir)/Lib/libmetis.la -lm
++
++bin_PROGRAMS = pmetis kmetis oemetis onmetis mesh2dual mesh2nodal \
++ partdmesh partnmesh graphchk
++
++pmetis_SOURCES = pmetis.c io.c
++kmetis_SOURCES = kmetis.c io.c
++oemetis_SOURCES = oemetis.c io.c smbfactor.c
++onmetis_SOURCES = onmetis.c io.c smbfactor.c
++mesh2dual_SOURCES = mesh2dual.c io.c
++mesh2nodal_SOURCES = mesh2nodal.c io.c
++partdmesh_SOURCES = partdmesh.c io.c
++partnmesh_SOURCES = partnmesh.c io.c
++graphchk_SOURCES = graphchk.c io.c
+--- Test/Makefile.am 1970-01-01 01:00:00.000000000 +0100
++++ Test/Makefile.am 2008-01-31 12:37:59.532517099 +0000
+@@ -0,0 +1,7 @@
++AM_CPPFLAGS = -I$(top_srcdir)/Lib
++LDADD = $(top_builddir)/Lib/libmetis.la -lm
++check_PROGRAMS = mtest
++mtest_SOURCES = mtest.c ../Programs/io.c
++
++check-local: $(check_PROGRAMS)
++ - ./mtest ../Graphs/4elt.graph
diff --git a/sci-libs/metis/files/metis-5.1.0-datatype.patch b/sci-libs/metis/files/metis-5.1.0-datatype.patch
new file mode 100644
index 000000000000..f583d05f34d9
--- /dev/null
+++ b/sci-libs/metis/files/metis-5.1.0-datatype.patch
@@ -0,0 +1,12 @@
+--- include/metis.orig.h 2013-03-11 20:50:00.000000000 +0100
++++ include/metis.h 2013-03-16 12:14:59.117329640 +0100
+@@ -30,7 +30,7 @@
+ GCC does provides these definitions in stdint.h, but it may require some
+ modifications on other architectures.
+ --------------------------------------------------------------------------*/
+-#define IDXTYPEWIDTH 32
++#define IDXTYPEWIDTH 64
+
+
+ /*--------------------------------------------------------------------------
+
diff --git a/sci-libs/metis/files/metis-5.1.0-multilib.patch b/sci-libs/metis/files/metis-5.1.0-multilib.patch
new file mode 100644
index 000000000000..919812dc3093
--- /dev/null
+++ b/sci-libs/metis/files/metis-5.1.0-multilib.patch
@@ -0,0 +1,20 @@
+--- libmetis/CMakeLists.orig.txt 2011-06-22 19:47:13.000000000 +0200
++++ libmetis/CMakeLists.txt 2013-03-15 17:13:19.948911972 +0100
+@@ -4,13 +4,14 @@
+ file(GLOB metis_sources *.c)
+ # Build libmetis.
+ add_library(metis ${METIS_LIBRARY_TYPE} ${GKlib_sources} ${metis_sources})
++set_target_properties(metis PROPERTIES SOVERSION 0)
+ if(UNIX)
+ target_link_libraries(metis m)
+ endif()
+
+ if(METIS_INSTALL)
+ install(TARGETS metis
+- LIBRARY DESTINATION lib
+- RUNTIME DESTINATION lib
+- ARCHIVE DESTINATION lib)
++ LIBRARY DESTINATION lib${LIB_SUFFIX}
++ RUNTIME DESTINATION lib${LIB_SUFFIX}
++ ARCHIVE DESTINATION lib${LIB_SUFFIX})
+ endif()
diff --git a/sci-libs/metis/files/metis-5.1.0-shared-GKlib.patch b/sci-libs/metis/files/metis-5.1.0-shared-GKlib.patch
new file mode 100644
index 000000000000..acfa59e60bd3
--- /dev/null
+++ b/sci-libs/metis/files/metis-5.1.0-shared-GKlib.patch
@@ -0,0 +1,21 @@
+--- GKlib/CMakeLists.orig.txt 2013-03-11 20:50:14.000000000 +0100
++++ GKlib/CMakeLists.txt 2013-03-17 19:53:44.220827579 +0100
+@@ -7,7 +7,7 @@
+ include(GKlibSystem.cmake)
+
+ include_directories(".")
+-add_library(GKlib STATIC ${GKlib_sources})
++add_library(GKlib SHARED ${GKlib_sources})
+ if(UNIX)
+ target_link_libraries(GKlib m)
+ endif(UNIX)
+@@ -16,6 +16,6 @@
+ add_subdirectory("test")
+
+ install(TARGETS GKlib
+- ARCHIVE DESTINATION lib
+- LIBRARY DESTINATION lib)
+-install(FILES ${GKlib_includes} DESTINATION include)
++ ARCHIVE DESTINATION lib${LIB_SUFFIX}
++ LIBRARY DESTINATION lib${LIB_SUFFIX})
++install(FILES ${GKlib_includes} DESTINATION include/metis)
diff --git a/sci-libs/metis/metadata.xml b/sci-libs/metis/metadata.xml
new file mode 100644
index 000000000000..d9a2c8da5731
--- /dev/null
+++ b/sci-libs/metis/metadata.xml
@@ -0,0 +1,12 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <herd>sci</herd>
+ <longdescription lang="en">
+ METIS is a set of serial programs for partitioning graphs,
+ partitioning finite element meshes, and producing fill reducing
+ orderings for sparse matrices. The algorithms implemented in METIS are
+ based on the multilevel recursive-bisection, multilevel k-way, and
+ multi-constraint partitioning schemes.
+</longdescription>
+</pkgmetadata>
diff --git a/sci-libs/metis/metis-4.0.3.ebuild b/sci-libs/metis/metis-4.0.3.ebuild
new file mode 100644
index 000000000000..a0570ab21466
--- /dev/null
+++ b/sci-libs/metis/metis-4.0.3.ebuild
@@ -0,0 +1,35 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+
+inherit autotools eutils fortran-2
+
+DESCRIPTION="A package for unstructured serial graph partitioning"
+HOMEPAGE="http://www-users.cs.umn.edu/~karypis/metis/metis/"
+SRC_URI="http://glaros.dtc.umn.edu/gkhome/fetch/sw/${PN}/OLD/${P}.tar.gz"
+
+SLOT="0"
+KEYWORDS="amd64 ~arm hppa ~mips ppc ppc64 sparc x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux"
+LICENSE="free-noncomm"
+IUSE="doc static-libs"
+
+DEPEND=""
+RDEPEND="${DEPEND}
+ !sci-libs/parmetis"
+
+src_prepare() {
+ epatch "${FILESDIR}"/${PN}-4.0.1-autotools.patch
+ sed -i -e "s/4.0.1/${PV}/" configure.ac || die
+ eautoreconf
+}
+
+src_configure() {
+ econf $(use_enable static-libs static)
+}
+
+src_install() {
+ default
+ use doc && dodoc Doc/manual.ps
+}
diff --git a/sci-libs/metis/metis-5.1.0-r1.ebuild b/sci-libs/metis/metis-5.1.0-r1.ebuild
new file mode 100644
index 000000000000..5cc2910fa3ab
--- /dev/null
+++ b/sci-libs/metis/metis-5.1.0-r1.ebuild
@@ -0,0 +1,73 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+
+inherit cmake-utils fortran-2 multilib
+
+DESCRIPTION="A package for unstructured serial graph partitioning"
+HOMEPAGE="http://www-users.cs.umn.edu/~karypis/metis/metis/"
+SRC_URI="http://glaros.dtc.umn.edu/gkhome/fetch/sw/${PN}/${P}.tar.gz"
+
+SLOT="0"
+KEYWORDS="~amd64 ~arm ~hppa ~ppc ~ppc64 ~sparc ~x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux"
+LICENSE="free-noncomm"
+IUSE="doc openmp static-libs"
+
+DEPEND=""
+RDEPEND="${DEPEND}
+ !sci-libs/parmetis"
+
+DOCS=( manual/manual.pdf )
+
+PATCHES=(
+ "${FILESDIR}"/${P}-datatype.patch
+ "${FILESDIR}"/${P}-shared-GKlib.patch
+ "${FILESDIR}"/${P}-multilib.patch
+ )
+
+src_prepare() {
+ sed \
+ -e 's:-O3::g' \
+ -i GKlib/GKlibSystem.cmake || die
+
+ cmake-utils_src_prepare
+}
+
+src_configure() {
+ local mycmakeargs=(
+ -DGKLIB_PATH="${S}"/GKlib
+ -DSHARED=TRUE
+ $(cmake-utils_use openmp)
+ )
+ cmake-utils_src_configure
+}
+
+src_test() {
+ cd graphs || die
+ PATH="${BUILD_DIR}"/programs/:${PATH} LD_LIBRARY_PATH="${BUILD_DIR}"/lib ndmetis mdual.graph || die
+ PATH="${BUILD_DIR}"/programs/:${PATH} LD_LIBRARY_PATH="${BUILD_DIR}"/lib mpmetis metis.mesh 2 || die
+ PATH="${BUILD_DIR}"/programs/:${PATH} LD_LIBRARY_PATH="${BUILD_DIR}"/lib gpmetis test.mgraph 4 || die
+ PATH="${BUILD_DIR}"/programs/:${PATH} LD_LIBRARY_PATH="${BUILD_DIR}"/lib gpmetis copter2.graph 4 || die
+ PATH="${BUILD_DIR}"/programs/:${PATH} LD_LIBRARY_PATH="${BUILD_DIR}"/lib graphchk 4elt.graph || die
+}
+
+src_install() {
+ cat >> "${T}"/metis.pc <<- EOF
+ prefix="${EPREFIX}"/usr
+ exec_prefix="${EPREFIX}"/usr
+ libdir="${EPREFIX}"/usr/$(get_libdir)
+ includedir="${EPREFIX}"/usr/include
+
+ Name: METIS
+ Description: Software for partioning unstructured graphes and meshes
+ Version: ${PV}
+ Libs: -L${libdir} -lmetis
+ Cflags: -I${includedir}/metis
+ EOF
+
+ insinto /usr/$(get_libdir)/pkgconfig
+ doins "${T}"/metis.pc
+ cmake-utils_src_install
+}