mirror of
https://github.com/yann64/haikuports.git
synced 2026-03-19 01:46:00 +01:00
* cmake/debuginfo: Mass fix packages with broken debuginfo * rtl_sdr: Fix trailing whitespace * meson/debuginfo: Mass fix packages with broken debuginfo * clean up conflicts --------- Co-authored-by: Luc Schrijvers <begasus@gmail.com>
72 lines
1.6 KiB
Bash
72 lines
1.6 KiB
Bash
SUMMARY="Tidies the layout and correct errors in HTML and XML documents"
|
|
DESCRIPTION="Tidy tidies HTML and XML. It can tidy your documents by itself, \
|
|
and developers can easily integrate its features into even more powerful tools."
|
|
HOMEPAGE="http://www.html-tidy.org/"
|
|
COPYRIGHT="1998-2022 World Wide Web Consortium"
|
|
LICENSE="MIT"
|
|
REVISION="4"
|
|
SOURCE_URI="https://github.com/htacg/tidy-html5/archive/$portVersion.tar.gz"
|
|
CHECKSUM_SHA256="59c86d5b2e452f63c5cdb29c866a12a4c55b1741d7025cf2f3ce0cde99b0660e"
|
|
SOURCE_DIR="tidy-html5-$portVersion"
|
|
|
|
ARCHITECTURES="all !x86_gcc2"
|
|
SECONDARY_ARCHITECTURES="x86"
|
|
|
|
libVersion="$portVersion"
|
|
libVersionCompat="$libVersion compat >= 5"
|
|
|
|
PROVIDES="
|
|
tidy$secondaryArchSuffix = $portVersion
|
|
cmd:tidy = $portVersion
|
|
lib:libtidy$secondaryArchSuffix = $libVersionCompat
|
|
"
|
|
REQUIRES="
|
|
haiku$secondaryArchSuffix
|
|
"
|
|
|
|
PROVIDES_devel="
|
|
tidy${secondaryArchSuffix}_devel = $portVersion
|
|
devel:libtidy$secondaryArchSuffix = $libVersionCompat
|
|
"
|
|
REQUIRES_devel="
|
|
tidy$secondaryArchSuffix == $portVersion base
|
|
"
|
|
|
|
BUILD_REQUIRES="
|
|
haiku${secondaryArchSuffix}_devel
|
|
"
|
|
BUILD_PREREQUIRES="
|
|
cmd:gcc$secondaryArchSuffix
|
|
cmd:cmake
|
|
cmd:make
|
|
"
|
|
|
|
defineDebugInfoPackage tidy$secondaryArchSuffix \
|
|
$libDir/libtidy.so.$libVersion
|
|
|
|
BUILD()
|
|
{
|
|
cmake -Bbuild -S. -DCMAKE_BUILD_TYPE=RelWithDebInfo \
|
|
-DCMAKE_INSTALL_PREFIX=$prefix \
|
|
-DLIB_INSTALL_DIR=$libDir \
|
|
-DINCLUDE_INSTALL_DIR=$includeDir \
|
|
-DMAN_INSTALL_DIR=$manDir/man1
|
|
make -C build $jobArgs
|
|
}
|
|
INSTALL()
|
|
{
|
|
make -C build install
|
|
|
|
rm $libDir/*.a
|
|
|
|
prepareInstalledDevelLib libtidy
|
|
fixPkgconfig
|
|
|
|
packageEntries devel \
|
|
$developDir
|
|
}
|
|
TEST()
|
|
{
|
|
./build/tidy --version
|
|
}
|