From 7c9c32e8cb03ffe081138dceff7d93f69503f352 Mon Sep 17 00:00:00 2001 From: beefcurtains Date: Mon, 29 Jun 2015 11:41:27 +0000 Subject: [PATCH] New package: tidy5-4.9.30 --- common/shlibs | 1 + srcpkgs/libtidy5 | 1 + srcpkgs/libtidy5-devel | 1 + srcpkgs/tidy5/patches/link-dynlib.patch | 11 +++++++ srcpkgs/tidy5/template | 39 +++++++++++++++++++++++++ 5 files changed, 53 insertions(+) create mode 120000 srcpkgs/libtidy5 create mode 120000 srcpkgs/libtidy5-devel create mode 100644 srcpkgs/tidy5/patches/link-dynlib.patch create mode 100644 srcpkgs/tidy5/template diff --git a/common/shlibs b/common/shlibs index 06a541ecdd..4a13098e29 100644 --- a/common/shlibs +++ b/common/shlibs @@ -2070,3 +2070,4 @@ libprocps.so.4 procps-ng-3.3.10_8 libskarnet.so.2 skalibs-2.3.5.1_1 libportablexdr.so.0 portablexdr-4.9.1_1 libtorrent-rasterbar.so.8 libtorrent1-1.0.5_1 +libtidy5.so.4 libtidy5-4.9.30_1 diff --git a/srcpkgs/libtidy5 b/srcpkgs/libtidy5 new file mode 120000 index 0000000000..04fe836aac --- /dev/null +++ b/srcpkgs/libtidy5 @@ -0,0 +1 @@ +tidy5 \ No newline at end of file diff --git a/srcpkgs/libtidy5-devel b/srcpkgs/libtidy5-devel new file mode 120000 index 0000000000..04fe836aac --- /dev/null +++ b/srcpkgs/libtidy5-devel @@ -0,0 +1 @@ +tidy5 \ No newline at end of file diff --git a/srcpkgs/tidy5/patches/link-dynlib.patch b/srcpkgs/tidy5/patches/link-dynlib.patch new file mode 100644 index 0000000000..7c57574ddf --- /dev/null +++ b/srcpkgs/tidy5/patches/link-dynlib.patch @@ -0,0 +1,11 @@ +--- CMakeLists.txt.orig ++++ CMakeLists.txt +@@ -157,7 +157,7 @@ + set(name ${LIB_NAME}) + set ( BINDIR console ) + add_executable( ${name} ${BINDIR}/tidy.c ) +-target_link_libraries( ${name} ${add_LIBS} ) ++target_link_libraries( ${name} tidy-share ) + if (MSVC) + set_target_properties( ${name} PROPERTIES DEBUG_POSTFIX d ) + endif () diff --git a/srcpkgs/tidy5/template b/srcpkgs/tidy5/template new file mode 100644 index 0000000000..7a8acd8beb --- /dev/null +++ b/srcpkgs/tidy5/template @@ -0,0 +1,39 @@ +# Template file for 'tidy5' +# This project has an identity crisis, it's "Tidy", +# "HTML Tidy" and "Tidy HTML5". Binaries are tidy5. +pkgname=tidy5 +_reponame=tidy-html5 +version=4.9.30 +revision=1 +wrksrc=${_reponame}-${version} +build_style=cmake +cmake_builddir=build/cmake +hostmakedepends="cmake libxslt" +short_desc="HTML Tidy with HTML5 support" +maintainer="beefcurtains " +license="W3C" +homepage="http://www.htacg.org/${_reponame}/" +distfiles="https://github.com/htacg/${_reponame}/archive/${version}.tar.gz" +checksum=569c23f9028e28ca5dd2020116dec01d2e43e0c698fdf9d0f6e599878495386d +nocross=yes + +post_install() { + vlicense LICENSE.txt LICENSE +} + +libtidy5_package() { + short_desc+=" - library files" + pkg_install() { + vmove "usr/lib/*.so.*" + } +} + +libtidy5-devel_package() { + depends="libtidy5>=${version}_${revision}" + short_desc+=" - development files" + pkg_install() { + vmove usr/include + vmove "usr/lib/*.a" + vmove "usr/lib/*.so" + } +}