summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastien Fabbro <bicatali@gentoo.org>2010-11-30 17:49:46 +0000
committerSebastien Fabbro <bicatali@gentoo.org>2010-11-30 17:49:46 +0000
commita8cb02238552f500c6a3dcad91e7f1ecbcdfeebf (patch)
tree904e9a0565af13afb5ac928906cb87dbd6c31f09 /sci-libs/grib_api
parentMoving app-admin/patchelf to dev-util/patchelf (diff)
downloadgentoo-2-a8cb02238552f500c6a3dcad91e7f1ecbcdfeebf.tar.gz
gentoo-2-a8cb02238552f500c6a3dcad91e7f1ecbcdfeebf.tar.bz2
gentoo-2-a8cb02238552f500c6a3dcad91e7f1ecbcdfeebf.zip
Initial import
(Portage version: 2.1.9.25/cvs/Linux x86_64)
Diffstat (limited to 'sci-libs/grib_api')
-rw-r--r--sci-libs/grib_api/ChangeLog10
-rw-r--r--sci-libs/grib_api/files/grib_api-1.9.5-autotools.patch336
-rw-r--r--sci-libs/grib_api/grib_api-1.9.5.ebuild52
-rw-r--r--sci-libs/grib_api/metadata.xml12
4 files changed, 410 insertions, 0 deletions
diff --git a/sci-libs/grib_api/ChangeLog b/sci-libs/grib_api/ChangeLog
new file mode 100644
index 000000000000..69dad6ce7d80
--- /dev/null
+++ b/sci-libs/grib_api/ChangeLog
@@ -0,0 +1,10 @@
+# ChangeLog for sci-libs/grib_api
+# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/sci-libs/grib_api/ChangeLog,v 1.1 2010/11/30 17:49:46 bicatali Exp $
+
+*grib_api-1.9.5 (30 Nov 2010)
+
+ 30 Nov 2010; Sébastien Fabbro <bicatali@gentoo.org> +grib_api-1.9.5.ebuild,
+ +files/grib_api-1.9.5-autotools.patch, +metadata.xml:
+ Initial import
+
diff --git a/sci-libs/grib_api/files/grib_api-1.9.5-autotools.patch b/sci-libs/grib_api/files/grib_api-1.9.5-autotools.patch
new file mode 100644
index 000000000000..b6d35e8c512e
--- /dev/null
+++ b/sci-libs/grib_api/files/grib_api-1.9.5-autotools.patch
@@ -0,0 +1,336 @@
+diff -Nur grib_api-1.9.5.orig/configure.ac grib_api-1.9.5/configure.ac
+--- grib_api-1.9.5.orig/configure.ac 2010-11-24 21:25:48.000000000 +0000
++++ grib_api-1.9.5/configure.ac 2010-11-24 22:55:33.000000000 +0000
+@@ -24,21 +24,9 @@
+ AC_CONFIG_HEADER([src/config.h])
+ AM_INIT_AUTOMAKE($PACKAGE_NAME,[${PACKAGE_VERSION}],[http://www.ecmwf.int])
+
+-definition_files_path=/usr/local/share/grib_api/definitions
+-samples_files_path=/usr/local/share/grib_api/samples
+-default_perl_install='${prefix}/perl'
+-
+-
+-if test "$prefix" != 'NONE' ; then
+- definition_files_path=${prefix}/share/definitions
+- samples_files_path=${prefix}/share/samples
+- default_perl_install=${prefix}/perl
+-fi
+-
+-if test "$datadir" != '${datarootdir}' ; then
+- definition_files_path=$datadir/definitions
+-fi
+-
++definition_files_path=${datadir}/$PACKAGE_NAME/definitions
++samples_files_path=${datadir}/$PACKAGE_NAME/samples
++default_perl_install=${prefix}/perl
+
+ AC_DEFINE_UNQUOTED(GRIB_API_MAIN_VERSION,$GRIB_API_MAIN_VERSION,Grib Api version)
+ AC_DEFINE_UNQUOTED(GRIB_API_MAJOR_VERSION,$GRIB_API_MAJOR_VERSION,Grib Api Major release)
+@@ -62,6 +50,7 @@
+ AC_PROG_LEX
+ AC_PROG_F77(pgf90 pgf77 xlf gfortran f77 g77 f90 ifort)
+ AC_PROG_FC(pgf90 xlf90 gfortran f90 ifort)
++AC_PROG_LIBTOOL
+
+ dnl check availability of pthreads
+ AC_ARG_ENABLE([pthread],
+@@ -445,7 +434,7 @@
+ builddir=`pwd`
+
+ dnl Options to pass when configuring Perl grib_api
+-GRIB_API_LIB="${builddir}/src/grib_api.a"
++GRIB_API_LIB="${builddir}/src/libgrib_api.la"
+ GRIB_API_INC="${builddir}/src"
+ AC_ARG_WITH([perl-options],
+ [AC_HELP_STRING([--with-perl-options=[OPTIONS]], [options to pass on command-line when
+diff -Nur grib_api-1.9.5.orig/definitions/installDefinitions.sh grib_api-1.9.5/definitions/installDefinitions.sh
+--- grib_api-1.9.5.orig/definitions/installDefinitions.sh 2010-11-24 21:25:47.000000000 +0000
++++ grib_api-1.9.5/definitions/installDefinitions.sh 2010-11-24 21:26:16.000000000 +0000
+@@ -44,7 +44,7 @@
+ echo checking definition files compatibility...
+ for file in `find . -name '*.def' -print`
+ do
+- ${grib_api_bin}/parser $file
++ ${grib_api_bin}/grib_parser $file
+ done
+ if [ $? != 0 ]
+ then
+diff -Nur grib_api-1.9.5.orig/examples/C/Makefile.am grib_api-1.9.5/examples/C/Makefile.am
+--- grib_api-1.9.5.orig/examples/C/Makefile.am 2010-11-24 21:25:47.000000000 +0000
++++ grib_api-1.9.5/examples/C/Makefile.am 2010-11-24 21:26:16.000000000 +0000
+@@ -30,7 +30,7 @@
+
+ INCLUDES = -I$(top_builddir)/src
+
+-LDADD = $(top_builddir)/src/libgrib_api.a
++LDADD = $(top_builddir)/src/libgrib_api.la
+ DEPENDENCIES = $(LDADD)
+
+ EXTRA_DIST =$(TESTS) include.sh
+diff -Nur grib_api-1.9.5.orig/examples/F90/Makefile.am grib_api-1.9.5/examples/F90/Makefile.am
+--- grib_api-1.9.5.orig/examples/F90/Makefile.am 2010-11-24 21:25:47.000000000 +0000
++++ grib_api-1.9.5/examples/F90/Makefile.am 2010-11-24 21:26:16.000000000 +0000
+@@ -37,7 +37,7 @@
+
+ AM_FCFLAGS = $(F90_MODULE_FLAG)$(top_builddir)/fortran
+
+-LDADD = $(top_builddir)/fortran/libgrib_api_f90.a $(top_builddir)/src/libgrib_api.a
++LDADD = $(top_builddir)/fortran/libgrib_api_f90.la $(top_builddir)/src/libgrib_api.la
+ DEPENDENCIES = $(LDADD)
+
+ EXTRA_DIST =$(TESTS) include.sh
+diff -Nur grib_api-1.9.5.orig/examples/python/include.sh grib_api-1.9.5/examples/python/include.sh
+--- grib_api-1.9.5.orig/examples/python/include.sh 2010-11-24 21:25:47.000000000 +0000
++++ grib_api-1.9.5/examples/python/include.sh 2010-11-24 22:03:25.000000000 +0000
+@@ -14,6 +14,8 @@
+
+ PYTHONPATH=$path/python:$PYTHONPATH
+ export PYTHONPATH
++LD_LIBRARY_PATH=$path/src/.libs:$LD_LIBRARY_PATH
++export LD_LIBRARY_PATH
+
+ set -u
+
+diff -Nur grib_api-1.9.5.orig/examples/python/Makefile.am grib_api-1.9.5/examples/python/Makefile.am
+--- grib_api-1.9.5.orig/examples/python/Makefile.am 2010-11-24 21:25:47.000000000 +0000
++++ grib_api-1.9.5/examples/python/Makefile.am 2010-11-24 21:51:35.000000000 +0000
+@@ -10,7 +10,7 @@
+ iterator_SOURCES = iterator.c
+ count_messages_SOURCES = count_messages.c
+ INCLUDES = -I$(top_builddir)/src
+-LDADD = $(top_builddir)/src/libgrib_api.a
++LDADD = $(top_builddir)/src/libgrib_api.la
+ DEPENDENCIES = $(LDADD)
+
+ EXTRA_DIST = $(TESTS) include.sh clone.py count_messages.py get.py index.py iterator.py keys_iterator.py multi_write.py nearest.py print_data.py samples.py set.py set_missing.py
+diff -Nur grib_api-1.9.5.orig/fortran/Makefile.am grib_api-1.9.5/fortran/Makefile.am
+--- grib_api-1.9.5.orig/fortran/Makefile.am 2010-11-24 21:25:47.000000000 +0000
++++ grib_api-1.9.5/fortran/Makefile.am 2010-11-24 21:26:16.000000000 +0000
+@@ -2,14 +2,14 @@
+
+ AM_CFLAGS = @WARN_PEDANTIC@
+
+-lib_LIBRARIES = libgrib_api_f77.a libgrib_api_f90.a
++lib_LTLIBRARIES = libgrib_api_f77.la libgrib_api_f90.la
+ include_HEADERS = grib_api_f77.h
+
+-libgrib_api_f77_a_SOURCES= grib_fortran.c grib_f77.c
+-libgrib_api_f77_a_DEPENDENCIES = $(top_builddir)/src/libgrib_api.a
++libgrib_api_f77_la_SOURCES= grib_fortran.c grib_f77.c
++libgrib_api_f77_la_DEPENDENCIES = $(top_builddir)/src/libgrib_api.la
+
+-libgrib_api_f90_a_SOURCES= grib_fortran.c grib_f90.f90
+-libgrib_api_f90_a_DEPENDENCIES = $(top_builddir)/src/libgrib_api.a grib_api_externals.h grib_api_visibility.h grib_api_constants.h grib_kinds.h
++libgrib_api_f90_la_SOURCES= grib_fortran.c grib_f90.f90
++libgrib_api_f90_la_DEPENDENCIES = $(top_builddir)/src/libgrib_api.la grib_api_externals.h grib_api_visibility.h grib_api_constants.h grib_kinds.h
+
+ libgrib_api_fortran_prototypes= grib_fortran.c
+
+@@ -26,7 +26,7 @@
+
+ ## Make sure these will be cleaned even when they're not built by
+ ## default.
+-CLEANFILES = libgrib_api_f77.a libgrib_api_f90.a grib_f90.f90 *.mod grib_types grib_kinds.h
++CLEANFILES = libgrib_api_f77.la libgrib_api_f90.la grib_f90.f90 *.mod grib_types grib_kinds.h
+
+ #noinst_HEADERS =
+
+diff -Nur grib_api-1.9.5.orig/ifs_samples/grib1/Makefile.am grib_api-1.9.5/ifs_samples/grib1/Makefile.am
+--- grib_api-1.9.5.orig/ifs_samples/grib1/Makefile.am 2010-11-24 21:25:48.000000000 +0000
++++ grib_api-1.9.5/ifs_samples/grib1/Makefile.am 2010-11-24 21:26:16.000000000 +0000
+@@ -1,5 +1,5 @@
+
+-ifs_samples_grib1dir = ifs_samples/grib1
++ifs_samples_grib1dir = @GRIB_SAMPLES_PATH@/ifs_samples/grib1
+
+ dist_ifs_samples_grib1_DATA = \
+ gg_ml.tmpl \
+diff -Nur grib_api-1.9.5.orig/ifs_samples/grib1_mlgrib2/Makefile.am grib_api-1.9.5/ifs_samples/grib1_mlgrib2/Makefile.am
+--- grib_api-1.9.5.orig/ifs_samples/grib1_mlgrib2/Makefile.am 2010-11-24 21:25:48.000000000 +0000
++++ grib_api-1.9.5/ifs_samples/grib1_mlgrib2/Makefile.am 2010-11-24 21:26:16.000000000 +0000
+@@ -1,5 +1,5 @@
+
+-ifs_samples_grib1_mlgrib2dir = ifs_samples/grib1_mlgrib2
++ifs_samples_grib1_mlgrib2dir = @GRIB_SAMPLES_PATH@/ifs_samples/grib1_mlgrib2
+
+ dist_ifs_samples_grib1_mlgrib2_DATA = \
+ gg_ml.tmpl \
+diff -Nur grib_api-1.9.5.orig/perl/GRIB-API/Makefile.PL.in grib_api-1.9.5/perl/GRIB-API/Makefile.PL.in
+--- grib_api-1.9.5.orig/perl/GRIB-API/Makefile.PL.in 2010-11-24 21:25:48.000000000 +0000
++++ grib_api-1.9.5/perl/GRIB-API/Makefile.PL.in 2010-11-24 22:56:11.000000000 +0000
+@@ -19,5 +19,5 @@
+ INC => '-I@GRIB_API_INC@', # e.g., '-I. -I/usr/include/other'
+ # Un-comment this if you add C files to link with later:
+ # OBJECT => '$(O_FILES)', # link all the C files too
+- depend => { "API.o" => "../../src/libgrib_api.a" }
++ depend => { "API.o" => "../../src/libgrib_api.la" }
+ );
+diff -Nur grib_api-1.9.5.orig/perl/Makefile.am grib_api-1.9.5/perl/Makefile.am
+--- grib_api-1.9.5.orig/perl/Makefile.am 2010-11-24 21:25:48.000000000 +0000
++++ grib_api-1.9.5/perl/Makefile.am 2010-11-24 21:26:16.000000000 +0000
+@@ -16,10 +16,10 @@
+ $(PERLMAKEFILE): $(PERLMAKEMAKER)
+ cd $(API_DIR) && @PERL@ Makefile.PL @PERL_INSTALL_OPTIONS@ @PERL_MAKE_OPTIONS@ @PERL_LD_OPTIONS@
+
+-$(PERLLIB): $(PERLMAKEFILE) $(top_builddir)/src/libgrib_api.a
++$(PERLLIB): $(PERLMAKEFILE) $(top_builddir)/src/libgrib_api.la
+ cd $(API_DIR) && $(MAKE)
+
+-$(top_builddir)/src/libgrib_api.a: $(top_builddir)/src/Makefile
++$(top_builddir)/src/libgrib_api.la: $(top_builddir)/src/Makefile
+ cd $(top_builddir)/src && $(MAKE)
+
+ install-exec-perl: $(PERLMAKEFILE)
+diff -Nur grib_api-1.9.5.orig/python/setup.py.in grib_api-1.9.5/python/setup.py.in
+--- grib_api-1.9.5.orig/python/setup.py.in 2010-11-24 21:25:48.000000000 +0000
++++ grib_api-1.9.5/python/setup.py.in 2010-11-24 23:02:54.000000000 +0000
+@@ -17,7 +17,8 @@
+ build_dir = '@BUILD_DIR@'
+ add_attribute(
+ include_dirs = os.path.join(build_dir,'src'),
+- extra_objects = os.path.join(build_dir,'src','libgrib_api.a')
++ library_dirs = os.path.join(build_dir,'src','.libs'),
++ libraries = 'grib_api'
+ )
+
+ with_jasper = '@LIB_JASPER@'
+diff -Nur grib_api-1.9.5.orig/src/extrules.am grib_api-1.9.5/src/extrules.am
+--- grib_api-1.9.5.orig/src/extrules.am 2010-11-24 21:25:48.000000000 +0000
++++ grib_api-1.9.5/src/extrules.am 2010-11-24 22:46:13.000000000 +0000
+@@ -9,7 +9,7 @@
+ cmp ../python/grib_errors.h grib_errors.h.new || (p4 edit ../python/grib_errors.h ; cp grib_errors.h.new ../python/grib_errors.h)
+
+
+-proto:;-p4 edit grib_api_prototypes.h;mkptypes -A $(libgrib_api_a_prototypes) $(libgrib_api_extra_prototypes) > grib_api_prototypes.h
++proto:;-p4 edit grib_api_prototypes.h;mkptypes -A $(libgrib_api_la_prototypes) $(libgrib_api_extra_prototypes) > grib_api_prototypes.h
+ test:all;(cd ../tests; make tests)
+
+ templates:
+diff -Nur grib_api-1.9.5.orig/src/Makefile.am grib_api-1.9.5/src/Makefile.am
+--- grib_api-1.9.5.orig/src/Makefile.am 2010-11-24 21:25:48.000000000 +0000
++++ grib_api-1.9.5/src/Makefile.am 2010-11-24 22:44:02.000000000 +0000
+@@ -7,10 +7,10 @@
+ # -DYYDEBUG
+
+
+-lib_LIBRARIES = libgrib_api.a
++lib_LTLIBRARIES = libgrib_api.la
+ include_HEADERS = grib_api.h
+
+-libgrib_api_a_prototypes= \
++libgrib_api_la_prototypes= \
+ action.c \
+ action_class_alias.c \
+ action_class_gen.c \
+@@ -139,7 +139,6 @@
+ grib_accessor_class_spectral_truncation.c \
+ grib_accessor_class_time.c \
+ grib_accessor_class_transient.c \
+- grib_accessor_class_g1_half_byte_codeflag.c \
+ grib_accessor_class_values.c \
+ grib_accessor_class_simple_packing_error.c \
+ grib_accessor_class_data_simple_packing.c \
+@@ -270,10 +269,10 @@
+
+ libgrib_api_extra_prototypes = grib_bits_any_endian.c grib_bits_any_endian_simple.c
+
+-libgrib_api_a_SOURCES = $(libgrib_api_a_prototypes) grib_yacc.c grib_lex.c
++libgrib_api_la_SOURCES = $(libgrib_api_la_prototypes) grib_yacc.c grib_lex.c
+
+-libgrib_api_a_LIBADD = @LIBOBJS@
+-libgrib_api_a_DEPENDENCIES = grib_api.h $(libgrib_api_a_LIBADD)
++libgrib_api_la_LIBADD = @LIBOBJS@
++libgrib_api_la_DEPENDENCIES = grib_api.h $(libgrib_api_la_LIBADD)
+
+
+ # set the include path
+@@ -281,7 +280,7 @@
+
+ ## Make sure these will be cleaned even when they're not built by
+ ## default.
+-CLEANFILES = libgrib_api.a
++CLEANFILES = libgrib_api.la
+
+
+ noinst_HEADERS = grib_api_internal.h \
+diff -Nur grib_api-1.9.5.orig/tests/definitions.sh grib_api-1.9.5/tests/definitions.sh
+--- grib_api-1.9.5.orig/tests/definitions.sh 2010-11-24 21:25:48.000000000 +0000
++++ grib_api-1.9.5/tests/definitions.sh 2010-11-24 21:30:11.000000000 +0000
+@@ -15,6 +15,6 @@
+
+ for file in `find $GRIB_DEFINITION_PATH -name '*.def' -print`
+ do
+- ${tools_dir}parser $file > $REDIRECT
++ ${tools_dir}grib_parser $file > $REDIRECT
+ done
+
+diff -Nur grib_api-1.9.5.orig/tests/Makefile.am grib_api-1.9.5/tests/Makefile.am
+--- grib_api-1.9.5.orig/tests/Makefile.am 2010-11-24 21:25:48.000000000 +0000
++++ grib_api-1.9.5/tests/Makefile.am 2010-11-24 21:26:16.000000000 +0000
+@@ -31,7 +31,7 @@
+ gribex_perf_SOURCES = gribex_perf.c
+ gribex_perf_SOURCES = gauss_sub.c
+
+- LDADD = $(top_builddir)/src/libgrib_api.a $(EMOS_LIB)
++ LDADD = $(top_builddir)/src/libgrib_api.la $(EMOS_LIB)
+
+ INCLUDES = -I$(top_builddir)/src
+
+diff -Nur grib_api-1.9.5.orig/tigge/Makefile.am grib_api-1.9.5/tigge/Makefile.am
+--- grib_api-1.9.5.orig/tigge/Makefile.am 2010-11-24 21:25:47.000000000 +0000
++++ grib_api-1.9.5/tigge/Makefile.am 2010-11-24 21:26:16.000000000 +0000
+@@ -12,5 +12,5 @@
+
+ INCLUDES = -I$(top_builddir)/src
+
+-LDADD = $(top_builddir)/src/libgrib_api.a
++LDADD = $(top_builddir)/src/libgrib_api.la
+ DEPENDENCIES = $(LDADD)
+diff -Nur grib_api-1.9.5.orig/tools/Makefile.am grib_api-1.9.5/tools/Makefile.am
+--- grib_api-1.9.5.orig/tools/Makefile.am 2010-11-24 21:25:48.000000000 +0000
++++ grib_api-1.9.5/tools/Makefile.am 2010-11-24 21:26:16.000000000 +0000
+@@ -3,9 +3,9 @@
+
+ AM_YFLAGS = -d
+
+-noinst_LIBRARIES = libgrib_tools.a
++noinst_LTLIBRARIES = libgrib_tools.la
+
+-libgrib_tools_a_SOURCES = grib_tools.c \
++libgrib_tools_la_SOURCES = grib_tools.c \
+ grib_options.c
+
+
+@@ -13,7 +13,7 @@
+ grib_debug grib_info grib_filter grib_ls grib_dump \
+ grib2ppm grib_set grib_get grib_get_data grib_copy grib_repair \
+ grib_packing grib_cmp grib_convert grib_distance grib_corruption_check\
+- grib_compare grib_list_keys parser grib_count grib_index_build grib1to2 \
++ grib_compare grib_list_keys grib_parser grib_count grib_index_build grib1to2 \
+ gg_sub_area_check
+
+ noinst_PROGRAMS = gaussian grib_diff mars_request xref all_keys #compile dumpload grib_compare_old
+@@ -30,7 +30,7 @@
+ grib_histogram_SOURCES = grib_histogram.c
+ grib_distance_SOURCES = grib_distance.c
+ grib_debug_SOURCES = grib_debug.c
+-parser_SOURCES = parser.c
++grib_parser_SOURCES = parser.c
+ grib_list_keys_SOURCES = list_keys.c
+ all_keys_SOURCES = all_keys.c
+ grib2ppm_SOURCES = grib2ppm.c
+@@ -60,12 +60,12 @@
+
+ INCLUDES = -I$(top_builddir)/src
+
+-LDADD = libgrib_tools.a $(top_builddir)/src/libgrib_api.a
++LDADD = libgrib_tools.la $(top_builddir)/src/libgrib_api.la
+ DEPENDENCIES = $(LDADD)
+
+ ## Make sure these will be cleaned even when they're not built by
+ ## default.
+-CLEANFILES = libgrib_tools.a
++CLEANFILES = libgrib_tools.la
+
+ grib1to2$(EXEEXT): grib1to2.txt
+ sed "s:toolsdir:$(bindir):" grib1to2.txt > grib1to2
diff --git a/sci-libs/grib_api/grib_api-1.9.5.ebuild b/sci-libs/grib_api/grib_api-1.9.5.ebuild
new file mode 100644
index 000000000000..0bac5fdb6328
--- /dev/null
+++ b/sci-libs/grib_api/grib_api-1.9.5.ebuild
@@ -0,0 +1,52 @@
+# Copyright 1999-2010 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/sci-libs/grib_api/grib_api-1.9.5.ebuild,v 1.1 2010/11/30 17:49:46 bicatali Exp $
+
+EAPI=2
+inherit eutils autotools
+
+DESCRIPTION="Library for decoding WMO FM-92 GRIB messages"
+HOMEPAGE="http://www.ecmwf.int/products/data/software/grib_api.html"
+SRC_URI="http://www.ecmwf.int/products/data/software/download/software_files/${P}.tar.gz"
+
+LICENSE="LGPL-3"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="doc examples fortran jpeg2k openmp png perl python static-libs"
+
+DEPEND="jpeg2k? ( || ( media-libs/jasper media-libs/openjpeg ) )
+ png? ( media-libs/libpng )
+ python? ( dev-python/numpy )"
+RDEPEND="${DEPEND}"
+
+src_prepare() {
+ epatch "${FILESDIR}"/${P}-autotools.patch
+ eautoreconf
+}
+
+src_configure() {
+ econf \
+ --enable-install-system-perl \
+ $(use_enable fortran) \
+ $(use_enable jpeg2k jpeg) \
+ $(use_enable openmp omp-packing) \
+ $(use_enable python) \
+ $(use_enable python numpy) \
+ $(use_enable static-libs static) \
+ $(use_with perl) \
+ $(use_with png png-support)
+
+}
+
+src_install() {
+ emake DESTDIR="${D}" install || die "emake install failed"
+ dodoc AUTHORS ChangeLog README
+ if use doc; then
+ dohtml html/* || die
+ fi
+ if use examples; then
+ insinto /usr/share/doc/${PF}/examples
+ emake clean
+ doins -r * || die
+ fi
+}
diff --git a/sci-libs/grib_api/metadata.xml b/sci-libs/grib_api/metadata.xml
new file mode 100644
index 000000000000..e2c65891d24c
--- /dev/null
+++ b/sci-libs/grib_api/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">
+ The European Centre for Medium-Range Weather Forecasts GRIdded
+ Binary (GRIB) API is an application program interface accessible
+ from C and FORTRAN programs developed for encoding and decoding WMO
+ FM-92 GRIB edition 1 and edition 2 messages. A useful set of command
+ line tools is also provided to give quick access to grib messages.
+</longdescription>
+</pkgmetadata>