Advertisement
Guest User

cndrvcups-common-2.56-r1.ebuild

a guest
Jul 2nd, 2013
193
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.26 KB | None | 0 0
  1. # Copyright 1999-2006 Gentoo Foundation
  2. # Distributed under the terms of the GNU General Public License v2
  3. # $Header: $
  4.  
  5. EAPI="2"
  6. inherit multilib eutils rpm versionator
  7. MY_P=${P/_p/-}-1
  8. DESCRIPTION="Common files for the Canon CUPS Capt driver"
  9. HOMEPAGE="http://www.canon.com/"
  10. SRC_URI="http://gdlp01.c-wss.com/gds/8/0100001348/03/${MY_P}.tar.gz"
  11. LICENSE="CANON"
  12. SLOT="0"
  13. KEYWORDS="~amd64 ~x86"
  14. IUSE="-cngplp" # enable or disable cngplp compilation, may cause build break on ~amd64, don't really know if cngplp is ever needed
  15. RESTRICT=""
  16.  
  17. DEPEND=">=net-print/cups-1.1.17"
  18. S=${WORKDIR}/${PN}-$(get_version_component_range 1-2)
  19.  
  20. dir=/usr/$(get_libdir)
  21. CNGPLP=""
  22.  
  23. QA_TEXTRELS="${dir:1}/libcaepcm.so.1.0
  24. ${dir:1}/libc3pl.so.0.0.1
  25. ${dir:1}/libcnlbcm.so.1.0
  26. ${dir:1}/libcaiousb.so.1.0.0"
  27. src_configure(){
  28. if hasuse cngplp; then CNGPLP="cngplp"; fi
  29. for i in buftool ${CNGPLP}; do
  30. cd ${i}
  31. NOCONFIGURE=1 ./autogen.sh
  32. econf
  33. cd ..
  34. done
  35. # cd cpca
  36. # NOCONFIGURE=1 ./autogen.sh
  37. # econf --enable-shared --disable-static
  38. # cd ..
  39. }
  40.  
  41. src_compile() {
  42. for i in buftool c3plmod_ipc ${CNGPLP}; do
  43. cd ${i}
  44. emake
  45. cd ..
  46. done
  47. }
  48.  
  49. src_install() {
  50. for i in buftool ${CNGPLP}; do
  51. cd ${i}
  52. make install DESTDIR=${D} || die "make install failed for ${i}"
  53. cd ..
  54. done
  55.  
  56. OABI=${ABI}
  57. has_multilib_profile && ABI="x86"
  58. for i in $(cd libs; ls *.so.?.?.?; cd ..); do
  59. dolib.so libs/${i}
  60. dosym ${i} /usr/$(get_libdir)/${i%.?}
  61. dosym ${i} /usr/$(get_libdir)/${i%.?.?}
  62. dosym ${i} /usr/$(get_libdir)/${i%.?.?.?}
  63. done
  64. for i in $(cd libs; ls *.so.?.?; cd ..); do
  65. dolib.so libs/${i}
  66. dosym ${i} /usr/$(get_libdir)/${i%.?}
  67. dosym ${i} /usr/$(get_libdir)/${i%.?.?}
  68. done
  69.  
  70. dolib.so c3plmod_ipc/libcanonc3pl.so.1.0.0
  71. dosym libcanonc3pl.so.1.0.0 /usr/$(get_libdir)/libcanonc3pl.so.1.0
  72. dosym libcanonc3pl.so.1.0.0 /usr/$(get_libdir)/libcanonc3pl.so.1
  73. dosym libcanonc3pl.so.1.0.0 /usr/$(get_libdir)/libcanonc3pl.so
  74.  
  75. dobin libs/cnpkmodule
  76. dobin libs/c3pldrv
  77.  
  78. ABI=${OABI}
  79.  
  80. insinto /usr/share/caepcm
  81. doins data/*
  82.  
  83.  
  84. dodoc LICENSE-common-*.txt README
  85. for i in buftool c3plmod_ipc ${CNGPLP}; do
  86. docinto ${i}
  87. dodoc ${i}/NEWS ${i}/README ${i}/AUTHORS ${i}/ChangeLog
  88. done
  89. docinto buftool
  90. dodoc buftool/LICENSE.txt
  91. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement