libcdio-0.92.ebuild 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  1. # Copyright 1999-2017 Gentoo Foundation
  2. # Distributed under the terms of the GNU General Public License v2
  3. EAPI=5
  4. inherit eutils libtool multilib-minimal
  5. DESCRIPTION="A library to encapsulate CD-ROM reading and control"
  6. HOMEPAGE="https://www.gnu.org/software/libcdio/"
  7. SRC_URI="mirror://gnu/${PN}/${P}.tar.gz"
  8. LICENSE="GPL-3"
  9. SLOT="0/15" # subslot is based on SONAME
  10. KEYWORDS="alpha amd64 arm hppa ia64 ~mips ppc ppc64 ~sh sparc x86 ~amd64-fbsd ~sparc-fbsd ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~x86-solaris"
  11. IUSE="cddb +cxx minimal static-libs test"
  12. RDEPEND="
  13. !minimal? (
  14. >=sys-libs/ncurses-5.7-r7:0=
  15. cddb? ( >=media-libs/libcddb-1.3.2 )
  16. )
  17. >=virtual/libiconv-0-r1[${MULTILIB_USEDEP}]
  18. abi_x86_32? ( !<=app-emulation/emul-linux-x86-medialibs-20130224-r10
  19. !app-emulation/emul-linux-x86-medialibs[-abi_x86_32(-)] )"
  20. DEPEND="${RDEPEND}
  21. sys-apps/sed
  22. sys-devel/gettext
  23. virtual/pkgconfig
  24. test? ( dev-lang/perl )"
  25. DOCS="AUTHORS ChangeLog NEWS README* THANKS TODO"
  26. MULTILIB_WRAPPED_HEADERS=(
  27. /usr/include/cdio/cdio_config.h
  28. /usr/include/cdio/version.h
  29. )
  30. src_prepare() {
  31. sed \
  32. -e "s:-lncurses:$($(tc-getPKG_CONFIG) --libs ncurses):g" \
  33. -i configure || die
  34. elibtoolize # to prevent -L/usr/lib ending up in the linker line wrt 499510
  35. }
  36. multilib_src_configure() {
  37. local util_switch
  38. if ! multilib_is_native_abi || use minimal ; then
  39. util_switch="--without"
  40. else
  41. util_switch="--with"
  42. fi
  43. # Tests fail if ECONF_SOURCE is not relative
  44. ECONF_SOURCE="../${P}" econf \
  45. --disable-maintainer-mode \
  46. $(use_enable cxx) \
  47. --disable-cpp-progs \
  48. --disable-example-progs \
  49. $(use_enable static-libs static) \
  50. $(use_enable cddb) \
  51. --disable-vcd-info \
  52. ${util_switch}-{cd-drive,cd-info,cdda-player,cd-read,iso-info,iso-read}
  53. }
  54. multilib_src_install_all() {
  55. einstalldocs
  56. prune_libtool_files
  57. }