1*4882a593SmuzhiyunSUMMARY = "A library for text mode user interfaces" 2*4882a593Smuzhiyun 3*4882a593SmuzhiyunDESCRIPTION = "Newt is a programming library for color text mode, widget based user \ 4*4882a593Smuzhiyuninterfaces. Newt can be used to add stacked windows, entry widgets, \ 5*4882a593Smuzhiyuncheckboxes, radio buttons, labels, plain text fields, scrollbars, \ 6*4882a593Smuzhiyunetc., to text mode user interfaces. This package also contains the \ 7*4882a593Smuzhiyunshared library needed by programs built with newt, as well as a \ 8*4882a593Smuzhiyun/usr/bin/dialog replacement called whiptail. Newt is based on the \ 9*4882a593Smuzhiyunslang library." 10*4882a593Smuzhiyun 11*4882a593SmuzhiyunHOMEPAGE = "https://releases.pagure.org/newt/" 12*4882a593SmuzhiyunSECTION = "libs" 13*4882a593Smuzhiyun 14*4882a593SmuzhiyunLICENSE = "LGPL-2.0-only" 15*4882a593SmuzhiyunLIC_FILES_CHKSUM = "file://COPYING;md5=5f30f0716dfdd0d91eb439ebec522ec2" 16*4882a593Smuzhiyun 17*4882a593Smuzhiyun# slang needs to be >= 2.2 18*4882a593SmuzhiyunDEPENDS = "slang popt python3" 19*4882a593Smuzhiyun 20*4882a593SmuzhiyunSRC_URI = "https://releases.pagure.org/newt/newt-${PV}.tar.gz \ 21*4882a593Smuzhiyun file://cross_ar.patch \ 22*4882a593Smuzhiyun file://Makefile.in-Add-tinfo-library-to-the-linking-librari.patch \ 23*4882a593Smuzhiyun file://0001-detect-gold-as-GNU-linker-too.patch \ 24*4882a593Smuzhiyun " 25*4882a593Smuzhiyun 26*4882a593SmuzhiyunSRC_URI[sha256sum] = "caa372907b14ececfe298f0d512a62f41d33b290610244a58aed07bbc5ada12a" 27*4882a593Smuzhiyun 28*4882a593SmuzhiyunS = "${WORKDIR}/newt-${PV}" 29*4882a593Smuzhiyun 30*4882a593Smuzhiyuninherit autotools-brokensep python3native python3-dir python3targetconfig 31*4882a593Smuzhiyun 32*4882a593SmuzhiyunEXTRA_OECONF = "--without-tcl --with-python" 33*4882a593Smuzhiyun 34*4882a593SmuzhiyunEXTRA_OEMAKE += "PYTHONVERS=${PYTHON_DIR}" 35*4882a593Smuzhiyun 36*4882a593SmuzhiyunCLEANBROKEN = "1" 37*4882a593Smuzhiyun 38*4882a593Smuzhiyunexport CPPFLAGS 39*4882a593Smuzhiyun 40*4882a593SmuzhiyunPACKAGES:prepend = "whiptail ${PN}-python " 41*4882a593Smuzhiyun 42*4882a593SmuzhiyunRDEPENDS:${PN}-python += "python3-core" 43*4882a593SmuzhiyunFILES:${PN}-python = "${PYTHON_SITEPACKAGES_DIR}/*" 44*4882a593Smuzhiyun 45*4882a593Smuzhiyundo_configure:prepend() { 46*4882a593Smuzhiyun sh autogen.sh 47*4882a593Smuzhiyun} 48*4882a593Smuzhiyun 49*4882a593Smuzhiyundo_compile:prepend() { 50*4882a593Smuzhiyun # Make sure the recompile is OK 51*4882a593Smuzhiyun rm -f ${B}/.depend 52*4882a593Smuzhiyun} 53*4882a593Smuzhiyun 54*4882a593SmuzhiyunFILES:whiptail = "${bindir}/whiptail" 55*4882a593Smuzhiyun 56*4882a593SmuzhiyunBBCLASSEXTEND = "native nativesdk" 57