public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] gentoo-x86 commit in sci-libs/libbufr: ChangeLog libbufr-000387.ebuild
@ 2011-05-03  5:23 Steve Arnold (nerdboy)
  0 siblings, 0 replies; 2+ messages in thread
From: Steve Arnold (nerdboy) @ 2011-05-03  5:23 UTC (permalink / raw
  To: gentoo-commits

nerdboy     11/05/03 05:23:55

  Modified:             ChangeLog
  Added:                libbufr-000387.ebuild
  Log:
  Updated to newer upstream version, including tests.
  
  (Portage version: 2.1.9.46/cvs/Linux x86_64)

Revision  Changes    Path
1.5                  sci-libs/libbufr/ChangeLog

file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-libs/libbufr/ChangeLog?rev=1.5&view=markup
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-libs/libbufr/ChangeLog?rev=1.5&content-type=text/plain
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-libs/libbufr/ChangeLog?r1=1.4&r2=1.5

Index: ChangeLog
===================================================================
RCS file: /var/cvsroot/gentoo-x86/sci-libs/libbufr/ChangeLog,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -r1.4 -r1.5
--- ChangeLog	17 Mar 2011 06:20:45 -0000	1.4
+++ ChangeLog	3 May 2011 05:23:55 -0000	1.5
@@ -1,6 +1,12 @@
 # ChangeLog for sci-libs/libbufr
 # Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/sci-libs/libbufr/ChangeLog,v 1.4 2011/03/17 06:20:45 nerdboy Exp $
+# $Header: /var/cvsroot/gentoo-x86/sci-libs/libbufr/ChangeLog,v 1.5 2011/05/03 05:23:55 nerdboy Exp $
+
+*libbufr-000387 (03 May 2011)
+
+  03 May 2011; Steve Arnold <nerdboy@gentoo.org> +libbufr-000387.ebuild,
+  +files/libbufr-makefile.patch:
+  Updated to newer upstream version, including tests.
 
   17 Mar 2011; Steve Arnold <nerdboy@gentoo.org> libbufr-000360.ebuild:
   Updated to address static makefiles ignoring flags; see bug 334901.



1.1                  sci-libs/libbufr/libbufr-000387.ebuild

file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-libs/libbufr/libbufr-000387.ebuild?rev=1.1&view=markup
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-libs/libbufr/libbufr-000387.ebuild?rev=1.1&content-type=text/plain

Index: libbufr-000387.ebuild
===================================================================
# Copyright 1999-2011 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/sci-libs/libbufr/libbufr-000387.ebuild,v 1.1 2011/05/03 05:23:55 nerdboy Exp $

EAPI="3"

inherit eutils flag-o-matic toolchain-funcs

MY_P="${PN/lib/}_${PV}"

DESCRIPTION="ECMWF BUFR library - includes both C and Fortran example utilities."
HOMEPAGE="http://www.ecmwf.int/products/data/software/bufr.html"
SRC_URI="http://www.ecmwf.int/products/data/software/download/software_files/${MY_P}.tar.gz"

LICENSE="LGPL-3"
SLOT="0"
KEYWORDS="~amd64 ~ppc ~ppc64 ~x86"
# needs someone to test on these: ~alpha ~hppa ~ia64 ~sparc etc ...

IUSE="debug doc examples"

RDEPEND=""

DEPEND="sys-apps/findutils"

S=${WORKDIR}/${MY_P}

pkg_setup() {
	case "$(tc-getFC)" in
		*gfortran)
			export CNAME="_gfortran"
			;;
		*g77)
			export CNAME="_gnu"
			;;
		*pgf90|*pgf77)
			export CNAME=""
			;;
		ifc|ifort)
			export CNAME="_intel"
			;;
	esac

	elog "Note non-GNU compilers are not currently supported on non-x86"
	elog "architectures.  If you need it, please subit a patch..."

	export target="linux"
	export A64=""
	export R64=""
	case "${ARCH}" in
		amd64)
			export R64="R64"
			export A64="A64"
			;;
		ppc64)
			export target="ppc_G5"
			;;
		ppc)
			export target="ppc"
			;;
		*)
			;;
	esac
}

src_prepare() {
	update_configs
	epatch "${FILESDIR}"/${PN}-makefile.patch

	local config="config/config.$target$CNAME$R64$A64"

	if [[ "${ARCH}" == "ppc" ]] ; then
		sed -i -e "s|= -mcpu=G4 -mtune=G4|= |" $config
	elif [[ "${ARCH}" == "ppc64" ]] ; then
		sed -i -e "s|= -mcpu=G5 -mtune=G5|= |" $config
	fi

	sed -i -e "s:DEBUG = -O2:DEBUG = -g:g" $config

	# add local CFLAGS to and build flags
	use debug || sed -i -e "s|\$(DEBUG)|${CFLAGS}|" $config

	# add local LDFLAGS to link commands
	sed -i \
		-e "s|-o|${LDFLAGS} -o|" \
		examples/Makefile \
		bufrtables/Makefile
}

src_compile() {
	EBUILD_ARCH="${ARCH}"
	EBUILD_CFLAGS="${CFLAGS}"
	unset ARCH CFLAGS
	tc-export CC
	append-flags -DTABLE_PATH="/usr/share/bufrtables"

	# emake won't work with this fossil...
	make ARCH=$target || die "make failed"

	pushd examples > /dev/null
	make ARCH=$target decode_bufr bufr_decode \
		create_bufr decode_bufr_image tdexp \
		|| die "make examples failed"
	popd > /dev/null

	generate_files

	ARCH="${EBUILD_ARCH}"
	CFLAGS="${EBUILD_CFLAGS}"
}

src_test() {
	cd "${S}"/examples
	BUFR_TABLES="${S}/bufrtables/" ./decode_bufr -i \
		../data/ISMD01_OKPR.bufr < ../response_file
}

src_install() {
	# install library
	dolib.a libbufr$R64.a

	dosbin bufrtables/{bufr2txt_tables,bufr_split_tables,txt2bufr_tables}
	dobin examples/{create_bufr,decode_bufr,decode_bufr_image,tdexp}

	keepdir /usr/share/bufrtables
	insinto /usr/share/bufrtables
	doins bufrtables/*000*

	# files generated above
	doenvd 20${PN}

	dodoc README
	if use doc ; then
		insinto /usr/share/doc/${P}
		doins doc/*.pdf
	fi

	if use examples ; then
		newdoc examples/README README.examples
		insinto /usr/share/doc/${P}/examples
		doins examples/{*.F,*.c,Makefile}
	fi
}

pkg_postinst() {
	elog
	elog "This is the only GPL'd BUFR decoder library written in C/Fortran"
	elog "but the build system is an old kluge that pre-dates the discovery"
	elog "of fire.  File bugs as usual if you have build/runtime problems."
	elog ""
	elog "The default BUFR tables are stored in /usr/share/bufrtables, so"
	elog "add your local tables there if needed.  Only a static lib is"
	elog "installed currently, as shared lib support is incomplete (feel"
	elog "free to submit a patch :)"
	elog ""
	elog "The installed user-land bufr utilities are just the examples;"
	elog "the main library is really all there is (and there are no man"
	elog "pages either).  Install the examples and use the source, Luke..."
	elog
}

generate_files() {
	cat <<-EOF > 20${PN}
	BUFR_TABLES="/usr/share/bufrtables"
	CONFIG_PROTECT="/usr/share/bufrtables"
	EOF

	cat <<-EOF > response_file
	N
	N
	N
	1




	N
	EOF
}

update_configs() {
	find . -type f | xargs chmod -x
	chmod +x bufrtables/links.sh
	cp options/options_linux options/options_ppc
	cp options/options_linux options/options_ppc_G5
	cp pbio/sources.linux pbio/sources.ppc
	cp pbio/sources.linux pbio/sources.ppc_G5
	pushd config > /dev/null
		cp config.ppc config.ppc_gfortran
		cp config.ppcR64 config.ppc_gfortranR64
		cp config.ppc_G5 config.ppc_G5_gfortran
		cp config.ppcR64_G5 config.ppc_G5_gfortranR64
	popd > /dev/null
}






^ permalink raw reply	[flat|nested] 2+ messages in thread

* [gentoo-commits] gentoo-x86 commit in sci-libs/libbufr: ChangeLog libbufr-000387.ebuild
@ 2011-05-14 19:01 Steve Arnold (nerdboy)
  0 siblings, 0 replies; 2+ messages in thread
From: Steve Arnold (nerdboy) @ 2011-05-14 19:01 UTC (permalink / raw
  To: gentoo-commits

nerdboy     11/05/14 19:01:34

  Modified:             ChangeLog libbufr-000387.ebuild
  Log:
  Updated test file generation (note: do not remove blanks).
  
  (Portage version: 2.1.9.47/cvs/Linux x86_64)

Revision  Changes    Path
1.6                  sci-libs/libbufr/ChangeLog

file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-libs/libbufr/ChangeLog?rev=1.6&view=markup
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-libs/libbufr/ChangeLog?rev=1.6&content-type=text/plain
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-libs/libbufr/ChangeLog?r1=1.5&r2=1.6

Index: ChangeLog
===================================================================
RCS file: /var/cvsroot/gentoo-x86/sci-libs/libbufr/ChangeLog,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -r1.5 -r1.6
--- ChangeLog	3 May 2011 05:23:55 -0000	1.5
+++ ChangeLog	14 May 2011 19:01:34 -0000	1.6
@@ -1,6 +1,9 @@
 # ChangeLog for sci-libs/libbufr
 # Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/sci-libs/libbufr/ChangeLog,v 1.5 2011/05/03 05:23:55 nerdboy Exp $
+# $Header: /var/cvsroot/gentoo-x86/sci-libs/libbufr/ChangeLog,v 1.6 2011/05/14 19:01:34 nerdboy Exp $
+
+  14 May 2011; Steve Arnold <nerdboy@gentoo.org> libbufr-000387.ebuild:
+  Updated test file generation (note: do not remove blanks).
 
 *libbufr-000387 (03 May 2011)
 



1.3                  sci-libs/libbufr/libbufr-000387.ebuild

file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-libs/libbufr/libbufr-000387.ebuild?rev=1.3&view=markup
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-libs/libbufr/libbufr-000387.ebuild?rev=1.3&content-type=text/plain
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-libs/libbufr/libbufr-000387.ebuild?r1=1.2&r2=1.3

Index: libbufr-000387.ebuild
===================================================================
RCS file: /var/cvsroot/gentoo-x86/sci-libs/libbufr/libbufr-000387.ebuild,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- libbufr-000387.ebuild	4 May 2011 04:28:29 -0000	1.2
+++ libbufr-000387.ebuild	14 May 2011 19:01:34 -0000	1.3
@@ -1,6 +1,6 @@
 # Copyright 1999-2011 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/sci-libs/libbufr/libbufr-000387.ebuild,v 1.2 2011/05/04 04:28:29 mr_bones_ Exp $
+# $Header: /var/cvsroot/gentoo-x86/sci-libs/libbufr/libbufr-000387.ebuild,v 1.3 2011/05/14 19:01:34 nerdboy Exp $
 
 EAPI="3"
 
@@ -160,6 +160,7 @@
 }
 
 generate_files() {
+	## Do not remove blank lines from the response file
 	cat <<-EOF > 20${PN}
 	BUFR_TABLES="/usr/share/bufrtables"
 	CONFIG_PROTECT="/usr/share/bufrtables"
@@ -171,6 +172,9 @@
 	N
 	1
 
+
+
+
 	N
 	EOF
 }






^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2011-05-14 19:01 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-05-14 19:01 [gentoo-commits] gentoo-x86 commit in sci-libs/libbufr: ChangeLog libbufr-000387.ebuild Steve Arnold (nerdboy)
  -- strict thread matches above, loose matches on Subject: below --
2011-05-03  5:23 Steve Arnold (nerdboy)

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox