libcdio-0.94-r1.ebuild 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. # Copyright 1999-2017 Gentoo Foundation
  2. # Distributed under the terms of the GNU General Public License v2
  3. EAPI=6
  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/16" # subslot is based on SONAME
  10. KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~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. default
  32. sed \
  33. -e "s:-lncurses:$($(tc-getPKG_CONFIG) --libs ncurses):g" \
  34. -i configure || die
  35. elibtoolize # to prevent -L/usr/lib ending up in the linker line wrt 499510
  36. }
  37. multilib_src_configure() {
  38. local util_switch
  39. if ! multilib_is_native_abi || use minimal ; then
  40. util_switch="--without"
  41. else
  42. util_switch="--with"
  43. fi
  44. # Tests fail if ECONF_SOURCE is not relative
  45. ECONF_SOURCE="../${P}" econf \
  46. --disable-maintainer-mode \
  47. $(use_enable cxx) \
  48. --disable-cpp-progs \
  49. --disable-example-progs \
  50. $(use_enable static-libs static) \
  51. $(use_enable cddb) \
  52. --disable-vcd-info \
  53. ${util_switch}-{cd-drive,cd-info,cdda-player,cd-read,iso-info,iso-read}
  54. }
  55. multilib_src_install_all() {
  56. einstalldocs
  57. prune_libtool_files
  58. }