summaryrefslogtreecommitdiff
path: root/tidy
diff options
context:
space:
mode:
authorTim Biermann <tbier@posteo.de>2020-11-07 17:00:00 +0000
committerTim Biermann <tbier@posteo.de>2020-11-07 17:00:00 +0000
commit3656034d9012fd10a5e7b9f25b9a79bb76eee4af (patch)
treeaa651d05bf63b3530cc78ae54c436e5dd02c81f8 /tidy
parentaef12e73f6072df41158039ecd0f2d7fe83c8dce (diff)
downloadcontrib-3656034d9012fd10a5e7b9f25b9a79bb76eee4af.tar.gz
contrib-3656034d9012fd10a5e7b9f25b9a79bb76eee4af.tar.xz
tidy: updated cmake syntax
Diffstat (limited to 'tidy')
-rw-r--r--tidy/.signature4
-rw-r--r--tidy/Pkgfile17
2 files changed, 10 insertions, 11 deletions
diff --git a/tidy/.signature b/tidy/.signature
index 1210ef6f9..41fea9461 100644
--- a/tidy/.signature
+++ b/tidy/.signature
@@ -1,5 +1,5 @@
untrusted comment: verify with /etc/ports/contrib.pub
-RWSagIOpLGJF3z6TLFD/bKa+O+XA56PigRg4T9cPWjUI77HZwVmoMN1Oh2zj6GFRNqpg+IrdX0Bdvh3ncqkiGPSFpIJ8r6IWSwc=
-SHA256 (Pkgfile) = 8c6b4f065b770f49b513f3ac4bf9dcda74725deb4284e53b1d979e6348def980
+RWSagIOpLGJF3xA7I21UTRdrpepyDbYgupRD5LhG1GiSoL6/WBVRsSAd1kdyK3wzqhoBbUEwP5F9jPT4Yg/saXD1YNjyJlojegs=
+SHA256 (Pkgfile) = 829c0800c3a8c5d8f1c2c4496bbdcc979475bb6c7fbee58bc7f83eaed3686465
SHA256 (.footprint) = 4fd164f764385da9f0b35ae3bee909a2c63fcd35bf58e9c3e7326a589e2ef562
SHA256 (tidy-d1b906991a7587688d384b648c55731f9be52506.tar.gz) = fa440efd18a455663d6d7f01e3a564cc2d270427a216c7fc16466b6b6de7dcb0
diff --git a/tidy/Pkgfile b/tidy/Pkgfile
index 33940c120..f81adb684 100644
--- a/tidy/Pkgfile
+++ b/tidy/Pkgfile
@@ -10,17 +10,16 @@ release=1
source=(https://github.com/htacg/tidy-html5/archive/$commit.tar.gz#/$name-$commit.tar.gz)
build() {
- cd tidy-html5-$commit
-
- mkdir -p build
- cd build
-
- cmake .. \
+ [[ -e /usr/bin/ninja ]] && PKGMK_TIDY_OPTIONS=' -GNinja'
+ cmake -Stidy-html5-$commit -Bbuild $PKGMK_TIDY_OPTIONS \
-DCMAKE_INSTALL_PREFIX=/usr \
- -DCMAKE_BUILD_TYPE=Release
+ -DCMAKE_BUILD_TYPE=Release \
+ -DCMAKE_CXX_FLAGS_RELEASE="$CXXFLAGS -DNDEBUG" \
+ -DCMAKE_C_FLAGS_RELEASE="$CFLAGS -DNDEBUG" \
+ -Wno-dev
- make
- make DESTDIR=$PKG install
+ cmake --build build
+ DESTDIR=$PKG cmake --install build
# Compatibility symlinks until everything is ported
ln -s tidybuffio.h $PKG/usr/include/buffio.h

Generated by cgit