This week only. Pastebin PRO Accounts Christmas Special! Don't miss out!Want more features on Pastebin? Sign Up, it's FREE!
Guest

Untitled

By: a guest on Oct 30th, 2013  |  syntax: None  |  size: 2.06 KB  |  views: 32  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. SUMMARY = "Generates SQL from Perl data structures"
  2. AUTHOR = "Peter Rabbitson <ribasushi@cpan.org>"
  3. HOMEPAGE = "https://metacpan.org/release/SQL-Abstract"
  4. SECTION = "libs"
  5. LICENSE = "Artistic-1.0 | GPL-1.0+"
  6. LIC_FILES_CHKSUM = "file://META.yml;md5=9756eb4cd606e68606e3f7de3567eed8"
  7.  
  8.  
  9. DEPENDS_${PN} = " \
  10.                  perl-module-scalar-util \
  11.                  perl-module-list-util \
  12.                  perl-module-carp \
  13.                  libclass-accessor-grouped-perl \
  14.                  libgetopt-long-descriptive-perl \
  15.                  libhash-merge-perl \
  16.                  "
  17.  
  18. RDEPENDS_${PN} = " \
  19.                  perl-module-scalar-util \
  20.                  perl-module-list-util \
  21.                  perl-module-carp \
  22.                  libclass-accessor-grouped-perl \
  23.                  libgetopt-long-descriptive-perl \
  24.                  libhash-merge-perl \
  25.                  "
  26.  
  27. RPROVIDES_${PN} =  " \
  28.                   libsql-abstract-perl \
  29.                   libsql-abstract-test-perl \
  30.                   libsql-abstract-tree-perl \
  31.                   "
  32.  
  33. SRC_URI = "http://cpan.metacpan.org/authors/id/R/RI/RIBASUSHI/SQL-Abstract-${PV}.tar.gz"
  34. SRC_URI[md5sum] = "4eca363f44ab195e75f45f307c37660e"
  35. SRC_URI[sha256sum] = "55466f4a2dd9f919037d32e5a97b01084168e359b51fde85045215ea0405e7f2"
  36.  
  37. S = "${WORKDIR}/SQL-Abstract-${PV}"
  38.  
  39. EXTRA_CPANFLAGS = "INC='-I${STAGING_INCDIR}' LIBS='-L${STAGING_LIBDIR}'"
  40.  
  41. do_configure_append() {
  42.  
  43.     # Prepend STAGING_DIR_TARGET to -rpath in CCDLFLAGS
  44.     sed -i 's|\(.*-rpath,\)|\1${STAGING_DIR_TARGET}|' ${S}/Makefile
  45.  
  46.     # And for SITELIBEXP, SITEARCHEXP, VENDORLIBEXP VENDORARCHEXP
  47.     sed -i 's|\(SITELIBEXP = \)\(.*\)|\1${STAGING_DIR_TARGET}\2|' ${S}/Makefile
  48.     sed -i 's|\(SITEARCHEXP = \)\(.*\)|\1${STAGING_DIR_TARGET}\2|' ${S}/Makefile
  49.  
  50.     sed -i 's|\(VENDORLIBEXP = \)\(.*\)|\1${STAGING_DIR_TARGET}\2|' ${S}/Makefile
  51.     sed -i 's|\(VENDORARCHEXP = \)\(.*\)|\1${STAGING_DIR_TARGET}\2|' ${S}/Makefile
  52.  
  53.     sed -i 's|\(PREFIX = \)\(.*\)|\1${D}\2|' ${S}/Makefile
  54.  
  55. }
  56.  
  57. inherit cpan
  58.  
  59. BBCLASSEXTEND = "native"
clone this paste RAW Paste Data