1*4882a593SmuzhiyunSUMMARY = "Library for parsing command line options" 2*4882a593SmuzhiyunDESCRIPTION = "Popt is a C library for parsing command line parameters. Popt was heavily influenced by the getopt() and getopt_long() functions, but it improves on them by allowing more powerful argument expansion. Popt can parse arbitrary argv[] style arrays and automatically set variables based on command line arguments." 3*4882a593SmuzhiyunHOMEPAGE = "https://www.rpm.org/" 4*4882a593SmuzhiyunSECTION = "libs" 5*4882a593Smuzhiyun 6*4882a593SmuzhiyunLICENSE = "MIT" 7*4882a593SmuzhiyunLIC_FILES_CHKSUM = "file://COPYING;md5=cb0613c30af2a8249b8dcc67d3edb06d" 8*4882a593Smuzhiyun 9*4882a593SmuzhiyunDEPENDS = "virtual/libiconv" 10*4882a593Smuzhiyun 11*4882a593SmuzhiyunSRC_URI = "\ 12*4882a593Smuzhiyun http://ftp.rpm.org/popt/releases/popt-1.x/${BP}.tar.gz \ 13*4882a593Smuzhiyun file://0001-popt-test-output-format-for-ptest.patch \ 14*4882a593Smuzhiyun file://run-ptest \ 15*4882a593Smuzhiyun" 16*4882a593SmuzhiyunSRC_URI[sha256sum] = "5159bc03a20b28ce363aa96765f37df99ea4d8850b1ece17d1e6ad5c24fdc5d1" 17*4882a593Smuzhiyun 18*4882a593Smuzhiyuninherit autotools gettext ptest 19*4882a593Smuzhiyun 20*4882a593SmuzhiyunRDEPENDS:${PN}-ptest += "bash" 21*4882a593Smuzhiyun 22*4882a593Smuzhiyundo_compile_ptest() { 23*4882a593Smuzhiyun sed 's#lt-test1#test1#g' ${S}/tests/testit.sh > ${B}/tests/testit.sh 24*4882a593Smuzhiyun} 25*4882a593Smuzhiyun 26*4882a593Smuzhiyundo_install_ptest() { 27*4882a593Smuzhiyun install ${B}/tests/.libs/test* ${D}/${PTEST_PATH} 28*4882a593Smuzhiyun install ${B}/tests/.libs/tdict ${D}/${PTEST_PATH} 29*4882a593Smuzhiyun install ${B}/tests/testit.sh ${D}/${PTEST_PATH} 30*4882a593Smuzhiyun install ${B}/tests/test-poptrc ${D}/${PTEST_PATH} 31*4882a593Smuzhiyun} 32*4882a593Smuzhiyun 33*4882a593SmuzhiyunBBCLASSEXTEND = "native nativesdk" 34