From mboxrd@z Thu Jan 1 00:00:00 1970 From: Kei Kebreau Subject: Re: [PATCH 2/5] gnu: Add tidy-html. Date: Tue, 07 Feb 2017 15:27:45 -0500 Message-ID: <877f50it6f.fsf@openmailbox.org> References: <20170131133501.30273-1-contact.ng0@cryptolab.net> <20170131133501.30273-3-contact.ng0@cryptolab.net> Mime-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-=" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:40492) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cbZc3-00081A-3X for guix-devel@gnu.org; Wed, 08 Feb 2017 16:17:16 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cbZbw-00041a-Op for guix-devel@gnu.org; Wed, 08 Feb 2017 16:17:15 -0500 Received: from lb1.openmailbox.org ([5.79.108.160]:58851 helo=mail.openmailbox.org) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1cbZbw-00040M-DB for guix-devel@gnu.org; Wed, 08 Feb 2017 16:17:08 -0500 In-Reply-To: <20170131133501.30273-3-contact.ng0@cryptolab.net> (contact's message of "Tue, 31 Jan 2017 13:34:58 +0000") List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: "Guix-devel" To: contact.ng0@cryptolab.net Cc: guix-devel@gnu.org, ng0 --=-=-= Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable contact.ng0@cryptolab.net writes: > From: ng0 > > * gnu/packages/web.scm (tidy-html): New variable. > --- > gnu/packages/web.scm | 51 ++++++++++++++++++++++++++++++++++++++++++++++= ++++- > 1 file changed, 50 insertions(+), 1 deletion(-) > > diff --git a/gnu/packages/web.scm b/gnu/packages/web.scm > index 67b9797bb..8a29eead1 100644 > --- a/gnu/packages/web.scm > +++ b/gnu/packages/web.scm > @@ -13,7 +13,7 @@ > ;;; Copyright =C2=A9 2016 Rene Saavedra > ;;; Copyright =C2=A9 2016 Ben Woodcroft > ;;; Copyright =C2=A9 2016 Cl=C3=A9ment Lassieur > -;;; Copyright =C2=A9 2016 ng0 > +;;; Copyright =C2=A9 2016, 2017 ng0 > ;;; Copyright =C2=A9 2016 Arun Isaac > ;;; Copyright =C2=A9 2016 Tobias Geerinckx-Rice > ;;; Copyright =C2=A9 2016 Bake Timmons > @@ -3995,3 +3995,52 @@ programs' code. Its architecture is optimized for= security, portability, and > scalability (including load-balancing), making it suitable for large > deployments.") > (license l:gpl2+))) > + > +(define-public tidy-html > + (package > + (name "tidy-html") > + (version "5.2.0") > + (source > + (origin > + (method url-fetch) > + (uri (string-append "https://github.com/htacg/tidy-html5/archive/" > + version ".tar.gz")) > + (file-name (string-append name "-" version ".tar.gz")) > + (sha256 > + (base32 > + "0kbwzh15dlapp3s3vff2qgz0yfcf8hwsnx5q4igwa6pimhak8lw0")))) > + (build-system cmake-build-system) > + (outputs '("out" > + "static")) ; 1.0MiB of .a files > + (arguments > + `(#:tests? #f ; No tests available > + #:configure-flags (list "-DCMAKE_BUILD_TYPE=3DRelease") > + #:phases > + (modify-phases %standard-phases > + (add-after 'install 'move-static-libraries > + (lambda* (#:key outputs #:allow-other-keys) > + ;; Move static libraries to the "static" output. > + (let* ((out (assoc-ref outputs "out")) > + (lib (string-append out "/lib")) > + (static (assoc-ref outputs "static")) > + (slib (string-append static "/lib"))) > + (mkdir-p slib) > + (for-each (lambda (file) > + (install-file file slib) > + (delete-file file)) > + (find-files lib "\\.a$")) > + #t)))))) > + (native-inputs > + `(("libxslt" ,libxslt))) > + (home-page "http://www.html-tidy.org/") > + (synopsis "HTML Tidy with HTML5 support") > + (description > + "Tidy is a console application for Mac OS X, Linux, Windows, > +UNIX, and more. It corrects and cleans up HTML and XML documents by > +fixing markup errors and upgrading legacy code to modern standards. > + > +libtidy is a C static and dynamic library that developers can integrate > +into their applications in order to bring all of Tidy=E2=80=99s power to= your > +favorite tools. libtidy is used today in desktop applications, > +web servers, and more.") Sentences in the description should be followed by two spaces. > + (license l:bsd-3))) The rest LGTM. --=-=-= Content-Type: application/pgp-signature; name=signature.asc Content-Transfer-Encoding: base64 LS0tLS1CRUdJTiBQR1AgU0lHTkFUVVJFLS0tLS0KCmlRSXpCQUVCQ0FBZEZpRUVnN1p3T3R6S08y bEx6aTJtNXFYdVBCbEdlZzBGQWxpYUxja0FDZ2tRNXFYdVBCbEcKZWcwN1Z4QUFtSnUwM1hFVW5v dngrT0hoZTNNRTg3c25ma0VOUDFydExDM0tiT0JzYnlLS0hFTi9tcTFtRDgveAo3bURMaVVQL0N6 Q1ZydlB2N2cvSnNTTGxTTzVNUVFRdHMwdTJMOXA0R2tVRy9LWjBBOVI3eDJkQTlIQUpzWHZmCm9r N2x1Yzc1SUlrTENCWWd0a0E2aXovRWdDN0I4SXdYdHZTajBVTmp0QWVCb0wvcU5XS0REMW0va1B6 cDBUNEYKSzhNZm1zd0J2c2J3WmhuQlE0QlhqcVNpL0RueURWaGwxdDV2aDA4UjVnb0w5dW1RMS9C V0NqRWpDbVozTDdXYwpLUFZnU0d6eFVrZVczUm15ZFJWa2kxemhpT1pWZlQxeC9CK3hDUnhQSVg0 eFYxRVY5eCtWQ1IvYkxTZk5NaXRlClU3VGNQbFMwU3p0anNlRWdLZUlBajREWi9valRBUTJrM2FU RFdTcnpibDNhWERMazdOdnZNcUNsbFA2ZGlsQjAKeDNZSWp1anZNZVcwdGZvcit1WksyWUdRL3Mz TUtJM1pjVmdKUXcyUnExSy9VUURQWFJkRnJRblFUc3FqRDdyYwphbmluMHc5S0lXYWhLNlA1Q3ZB eUc2OTBzNXdQUzdoQnNlWnJBS3dvOUxSdjIxaUZranpPc2EybmFKaUJNUUxLCkJPS0J2RmJVc2lB Umd5N3pDdTB1MjlHNEFSdHFVeUdQN0lQS01WakU0WG9Ec1cvbGgvd05KRkplRDg3QkorSDIKR2pi VjRHMEJOc0M5WXBLdEJ6T3VRSDNuMnEwZ3c1Q20zendPaXBTOTFuMEh6OU1IcGhGd3lxQ1FYNFUz cnM1eAppWkh2Y3dPZHRndk43VUZNL0tIOFVhKzBhK3FyeEN6T0FPTEtxY2dXSHFZcytyNUNhVGs9 Cj1MV0UrCi0tLS0tRU5EIFBHUCBTSUdOQVRVUkUtLS0tLQ== --=-=-=--