diff options
author | William Hubbs <williamh@gentoo.org> | 2011-03-28 21:24:31 +0000 |
---|---|---|
committer | William Hubbs <williamh@gentoo.org> | 2011-03-28 21:24:31 +0000 |
commit | be8d4d97757c51f8d6af5550107e77303ffa220c (patch) | |
tree | e48238cd098ebfb24dfa0cc7bcdcf9689d7bb5ba /app-accessibility/brltty | |
parent | Version bump. (diff) | |
download | gentoo-2-be8d4d97757c51f8d6af5550107e77303ffa220c.tar.gz gentoo-2-be8d4d97757c51f8d6af5550107e77303ffa220c.tar.bz2 gentoo-2-be8d4d97757c51f8d6af5550107e77303ffa220c.zip |
add patch to respect ldflags for bug #338161, thanks to Chris Brannon.
(Portage version: 2.2.0_alpha29/cvs/Linux i686)
Diffstat (limited to 'app-accessibility/brltty')
-rw-r--r-- | app-accessibility/brltty/ChangeLog | 6 | ||||
-rw-r--r-- | app-accessibility/brltty/brltty-4.2.ebuild | 9 | ||||
-rw-r--r-- | app-accessibility/brltty/files/brltty-4.2-fix-ldflags.patch | 60 |
3 files changed, 71 insertions, 4 deletions
diff --git a/app-accessibility/brltty/ChangeLog b/app-accessibility/brltty/ChangeLog index b8831f0f1664..f58a73d91f3b 100644 --- a/app-accessibility/brltty/ChangeLog +++ b/app-accessibility/brltty/ChangeLog @@ -1,6 +1,10 @@ # ChangeLog for app-accessibility/brltty # Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/app-accessibility/brltty/ChangeLog,v 1.108 2011/03/24 14:13:17 williamh Exp $ +# $Header: /var/cvsroot/gentoo-x86/app-accessibility/brltty/ChangeLog,v 1.109 2011/03/28 21:24:31 williamh Exp $ + + 28 Mar 2011; William Hubbs <williamh@gentoo.org> brltty-4.2.ebuild, + +files/brltty-4.2-fix-ldflags.patch: + add patch to respect ldflags for bug #338161, thanks to Chris Brannon. 24 Mar 2011; William Hubbs <williamh@gentoo.org> brltty-4.2.ebuild, +files/brltty-4.2-fix-ocaml-install.patch: diff --git a/app-accessibility/brltty/brltty-4.2.ebuild b/app-accessibility/brltty/brltty-4.2.ebuild index 152d2abf363e..ab82c2a35002 100644 --- a/app-accessibility/brltty/brltty-4.2.ebuild +++ b/app-accessibility/brltty/brltty-4.2.ebuild @@ -1,11 +1,12 @@ # Copyright 1999-2011 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/app-accessibility/brltty/brltty-4.2.ebuild,v 1.3 2011/03/24 14:13:17 williamh Exp $ +# $Header: /var/cvsroot/gentoo-x86/app-accessibility/brltty/brltty-4.2.ebuild,v 1.4 2011/03/28 21:24:31 williamh Exp $ EAPI="2" FINDLIB_USE="ocaml" -inherit findlib eutils multilib toolchain-funcs java-pkg-opt-2 flag-o-matic +inherit findlib eutils multilib toolchain-funcs java-pkg-opt-2 flag-o-matic \ + autotools DESCRIPTION="Daemon that provides access to the Linux/Unix console for a blind person" HOMEPAGE="http://mielke.cc/brltty/" @@ -33,10 +34,12 @@ RDEPEND="java? ( >=virtual/jre-1.4 ) ${COMMON_DEP}" src_prepare() { - epatch "${FILESDIR}"/${P}-glibc-212.patch + epatch "${FILESDIR}"/${P}-fix-ldflags.patch epatch "${FILESDIR}"/${P}-fix-ocaml-install.patch + epatch "${FILESDIR}"/${P}-glibc-212.patch java-pkg-opt-2_src_prepare + eautoreconf } src_configure() { diff --git a/app-accessibility/brltty/files/brltty-4.2-fix-ldflags.patch b/app-accessibility/brltty/files/brltty-4.2-fix-ldflags.patch new file mode 100644 index 000000000000..c3b73ca14aed --- /dev/null +++ b/app-accessibility/brltty/files/brltty-4.2-fix-ldflags.patch @@ -0,0 +1,60 @@ +Index: configure.ac +=================================================================== +--- configure.ac (revision 5474) ++++ configure.ac (working copy) +@@ -377,7 +377,7 @@ + case "${host_os}" + in + linux*|gnu*|openbsd*|freebsd*|kfreebsd*|netbsd*|*qnx*|cygwin*|mingw*|eabi*) +- brltty_mkmod_ld_make="-shared" ++ brltty_mkmod_ld_make="-shared ${LDFLAGS}" + ;; + solaris*) + brltty_mkmod_ld_make="-G" +@@ -404,7 +404,7 @@ + esac + if test "${GCC}" = "yes" + then +- brltty_cv_prog_mkmod="\$(CC) ${brltty_mkmod_gcc_make=-shared} BRLTTY_OPTIONS_LD2CC([${brltty_mkmod_ld_options}]) -o" ++ brltty_cv_prog_mkmod="\$(CC) ${brltty_mkmod_gcc_make=-shared} ${LDFLAGS} BRLTTY_OPTIONS_LD2CC([${brltty_mkmod_ld_options}]) -o" + else + brltty_cv_prog_mkmod="\$(LD) ${brltty_mkmod_ld_make} ${brltty_mkmod_ld_options} -o" + fi]) +@@ -414,7 +414,7 @@ + case "${host_os}" + in + linux*|gnu*|openbsd*|freebsd*|kfreebsd*|netbsd*|*qnx*|eabi*) +- brltty_mklib_ld_make="-shared" ++ brltty_mklib_ld_make="-shared ${LDFLAGS}" + brltty_mklib_ld_options="-soname" + ;; + solaris*) +@@ -449,7 +449,7 @@ + esac + if test "${GCC}" = "yes" + then +- brltty_cv_prog_mklib="\$(CC) ${brltty_mklib_gcc_make=-shared} BRLTTY_OPTIONS_LD2CC([${brltty_mklib_ld_options+${brltty_mklib_ld_options} <name>}]) -o" ++ brltty_cv_prog_mklib="\$(CC) ${brltty_mklib_gcc_make=-shared} ${LDFLAGS} BRLTTY_OPTIONS_LD2CC([${brltty_mklib_ld_options+${brltty_mklib_ld_options} <name>}]) -o" + else + brltty_cv_prog_mklib="\$(LD) ${brltty_mklib_ld_make} ${brltty_mklib_ld_options+${brltty_mklib_ld_options} <name>} -o" + fi]) +Index: Bindings/Caml/Makefile.in +=================================================================== +--- Bindings/Caml/Makefile.in (revision 5474) ++++ Bindings/Caml/Makefile.in (working copy) +@@ -55,13 +55,13 @@ + all : $(OCAML_FILES) + + $(OCAML_CLIBS) : brlapi_stubs.$O +- $(OCAMLMKLIB) $(API_LDFLAGS) -oc $(OCAML_LIB)_stubs brlapi_stubs.$O ++ $(OCAMLMKLIB) -ldopt "$(LDFLAGS)" $(API_LDFLAGS) -oc $(OCAML_LIB)_stubs brlapi_stubs.$O + + $(OCAML_BCLIB) : $(OCAML_CLIBS) brlapi.cmo + $(OCAMLC) -a $(OCAMLMKLIB_FLAGS) -o $(OCAML_LIB).cma brlapi.cmo + + $(OCAML_NCLIB) : $(OCAML_CLIBS) brlapi.cmx +- $(OCAMLMKLIB) $(OCAMLMKLIBOPT_FLAGS) -o $(OCAML_LIB) brlapi.cmx ++ $(OCAMLMKLIB) -ldopt "$(LDFLAGS)" $(OCAMLMKLIBOPT_FLAGS) -o $(OCAML_LIB) brlapi.cmx + + brlapi.cmi: brlapi.mli + $(OCAMLC) -o $@ -c brlapi.mli |