Files
haikuports/sys-block/parted/parted-3.2.recipe
Jerome Duval fc0936b040 Bump revisions for x86_64 rebuild after time_t change.
* a few apps needed build fix for time_t.
* disable compatibility packages for x86_64.
2017-06-27 15:46:25 +02:00

110 lines
2.6 KiB
Bash

SUMMARY="The GNU partition editor"
DESCRIPTION="GNU Parted manipulates partition tables. This is useful for \
creating space for new operating systems, reorganizing disk usage, copying \
data on hard disks and disk imaging."
HOMEPAGE="https://www.gnu.org/software/parted/"
COPYRIGHT="1999-2014 Free Software Foundation Inc."
LICENSE="GNU GPL v3"
REVISION="2"
SOURCE_URI="http://ftp.gnu.org/gnu/parted/parted-$portVersion.tar.xz"
CHECKSUM_SHA256="858b589c22297cacdf437f3baff6f04b333087521ab274f7ab677cb8c6bb78e4"
PATCHES="parted-$portVersion.patchset"
ARCHITECTURES="!x86_gcc2 x86 x86_64"
SECONDARY_ARCHITECTURES="!x86_gcc2 ?x86"
# On x86_gcc2 we don't want to install the commands in bin/<arch>/, but in bin/.
commandSuffix=$secondaryArchSuffix
commandBinDir=$binDir
if [ "$targetArchitecture" = x86_gcc2 ]; then
commandSuffix=
commandBinDir=$prefix/bin
fi
PROVIDES="
parted$secondaryArchSuffix = $portVersion
cmd:parted$commandSuffix = $portVersion
cmd:partprobe$commandSuffix = $portVersion
lib:libparted$secondaryArchSuffix = 2.0.1 compat >= 2
lib:libparted_fs_resize$secondaryArchSuffix = 0.0.1 compat >= 0
"
REQUIRES="
haiku$secondaryArchSuffix
lib:libiconv$secondaryArchSuffix
lib:libintl$secondaryArchSuffix
lib:libncurses$secondaryArchSuffix
lib:libreadline$secondaryArchSuffix
lib:libuuid$secondaryArchSuffix
"
PROVIDES_devel="
parted${secondaryArchSuffix}_devel = $portVersion
devel:libparted$secondaryArchSuffix = 2.0.1 compat >= 2
devel:libparted_fs_resize$secondaryArchSuffix = 0.0.1 compat >= 0
"
REQUIRES_devel="
parted$secondaryArchSuffix == $portVersion base
devel:libiconv$secondaryArchSuffix
devel:libintl$secondaryArchSuffix
devel:libncurses$secondaryArchSuffix
devel:libreadline$secondaryArchSuffix
devel:libuuid$secondaryArchSuffix
"
BUILD_REQUIRES="
haiku${secondaryArchSuffix}_devel
devel:libiconv$secondaryArchSuffix
devel:libintl$secondaryArchSuffix
devel:libncurses$secondaryArchSuffix
devel:libreadline$secondaryArchSuffix
devel:libuuid$secondaryArchSuffix
"
BUILD_PREREQUIRES="
cmd:aclocal
cmd:autoconf
cmd:autom4te
cmd:automake
cmd:autoreconf
cmd:awk
cmd:gcc$secondaryArchSuffix
cmd:gettext
cmd:gperf
cmd:grep
cmd:iconv
cmd:ld$secondaryArchSuffix
cmd:libtoolize$secondaryArchSuffix
cmd:make
cmd:makeinfo
cmd:pkg_config$secondaryArchSuffix
cmd:sed
"
BUILD()
{
autoreconf
runConfigure --omit-dirs sbinDir ./configure --sbindir=$commandBinDir \
--disable-device-mapper
make $jobArgs
}
INSTALL()
{
make install
prepareInstalledDevelLibs \
libparted \
libparted-fs-resize
fixPkgconfig
# devel package
packageEntries devel \
$developDir
}
TEST()
{
make check
}