2013-12-19 15:13:01 +00:00
|
|
|
SUMMARY = "Disk partition editing/resizing utility"
|
2008-10-08 08:19:28 +00:00
|
|
|
HOMEPAGE = "http://www.gnu.org/software/parted/parted.html"
|
2010-11-26 08:58:00 +00:00
|
|
|
LICENSE = "GPLv3+"
|
2010-12-30 06:07:06 +00:00
|
|
|
LIC_FILES_CHKSUM = "file://COPYING;md5=2f31b266d3440dd7ee50f92cf67d8e6c"
|
2008-10-08 08:19:28 +00:00
|
|
|
SECTION = "console/tools"
|
2015-12-29 01:21:54 +00:00
|
|
|
DEPENDS = "ncurses readline util-linux virtual/libiconv"
|
2013-02-26 01:19:44 +00:00
|
|
|
PR = "r1"
|
2008-10-08 08:19:28 +00:00
|
|
|
|
2012-03-15 22:17:52 +00:00
|
|
|
SRC_URI = "${GNU_MIRROR}/parted/parted-${PV}.tar.xz \
|
2010-12-30 06:07:06 +00:00
|
|
|
file://no_check.patch \
|
2012-03-15 22:17:52 +00:00
|
|
|
file://syscalls.patch \
|
2013-02-26 01:19:44 +00:00
|
|
|
file://fix-doc-mandir.patch \
|
2014-11-13 04:50:58 +00:00
|
|
|
file://fix-compile-failure-while-dis.patch \
|
2015-04-16 02:00:23 +00:00
|
|
|
file://0001-Include-fcntl.h-in-platform_defs.h.patch \
|
|
|
|
file://0001-Unset-need_charset_alias-when-building-for-musl.patch \
|
2017-03-03 21:36:18 +00:00
|
|
|
file://0002-libparted_fs_resize-link-against-libuuid-explicitly-.patch \
|
2017-02-22 20:02:31 +00:00
|
|
|
file://parted-3.2-sysmacros.patch \
|
2014-01-26 05:56:09 +00:00
|
|
|
file://run-ptest \
|
|
|
|
file://Makefile \
|
|
|
|
"
|
2010-03-25 14:09:24 +00:00
|
|
|
|
2014-11-13 04:50:58 +00:00
|
|
|
SRC_URI[md5sum] = "0247b6a7b314f8edeb618159fa95f9cb"
|
|
|
|
SRC_URI[sha256sum] = "858b589c22297cacdf437f3baff6f04b333087521ab274f7ab677cb8c6bb78e4"
|
2010-12-08 04:06:29 +00:00
|
|
|
|
2012-03-15 01:08:38 +00:00
|
|
|
EXTRA_OECONF = "--disable-device-mapper"
|
2015-12-29 01:21:54 +00:00
|
|
|
LDFLAGS_append_libc-uclibc = " -liconv "
|
2008-10-08 08:19:28 +00:00
|
|
|
|
2014-05-01 20:00:28 +00:00
|
|
|
inherit autotools pkgconfig gettext texinfo ptest
|
2010-03-25 14:09:24 +00:00
|
|
|
|
|
|
|
BBCLASSEXTEND = "native"
|
2014-01-26 05:56:09 +00:00
|
|
|
|
|
|
|
do_compile_ptest() {
|
|
|
|
oe_runmake -C tests print-align print-max dup-clobber duplicate fs-resize
|
|
|
|
}
|
|
|
|
|
|
|
|
do_install_ptest() {
|
|
|
|
t=${D}${PTEST_PATH}
|
|
|
|
mkdir $t/build-aux
|
|
|
|
cp ${S}/build-aux/test-driver $t/build-aux/
|
|
|
|
cp -r ${S}/tests $t
|
|
|
|
cp ${WORKDIR}/Makefile $t/tests/
|
2015-08-19 06:49:46 +00:00
|
|
|
sed -i "s|^VERSION.*|VERSION = ${PV}|g" $t/tests/Makefile
|
2014-01-26 05:56:09 +00:00
|
|
|
for i in print-align print-max dup-clobber duplicate fs-resize; \
|
|
|
|
do cp ${B}/tests/.libs/$i $t/tests/; \
|
|
|
|
done
|
|
|
|
sed -e 's| ../parted||' -i $t/tests/*.sh
|
|
|
|
}
|
|
|
|
|
2015-01-06 02:56:10 +00:00
|
|
|
RDEPENDS_${PN}-ptest = "bash coreutils perl util-linux-losetup python"
|