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: <87lgthiw5a.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="=-=-="; micalg=pgp-sha256; protocol="application/pgp-signature" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:49254) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cbbsG-0000Ek-Fq for guix-devel@gnu.org; Wed, 08 Feb 2017 18:42:09 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cbbsA-0007Ls-GR for guix-devel@gnu.org; Wed, 08 Feb 2017 18:42:08 -0500 Received: from lb1.openmailbox.org ([5.79.108.160]:43028 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 1cbbsA-0007LK-3C for guix-devel@gnu.org; Wed, 08 Feb 2017 18:42:02 -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-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" -----BEGIN PGP SIGNATURE----- iQIzBAEBCAAdFiEEg7ZwOtzKO2lLzi2m5qXuPBlGeg0FAliaLcEACgkQ5qXuPBlG eg3TYhAAujWDBhGIvuRWHe7IKmYxGhai5HQZTUCtRNRe0MvrROXy1xu6Td+lWQjK zGWhdyYCC+WdfFFS1E+MVpJzMql/BupT8w8kK3UTL+zD7pdn6ae6itqr/+YRgq// J42K3gOu9ZsZG0b1kllymMt3cH19aBW99ISgqfknnny8+UPPfjA5xa8LgTSFzqo7 9dB+yVjTloO6mzXwxkDkgu2pszZPcrb2jazbYcW7e86P0OOreyRk3QWD3i+K+epY Lsgw9FFtOePf92UiVhhlI0pc/5gaLpMkzvby+hub7Lj9Cut91gQ0AfGNieYOPkxn dddi4kD05njQM+S3dBFckOaRb0lSsWOJ30PuSq449YWrukYN7jHHy4NCVoqBLII0 VEWUUiRnDsemvUhn9TYQBarDK/aUnBDEl2c3NU7QFDlIPRfCwp4n8W95F2Cqy/S7 abWbY8rd9BDCOTOyXyq1lE5xyNjnWrZuk4e0cHdB44c7YlA7AkPPMhTGAjGpO2QH TfJSA/F5oEBzbXVD5Cssf1UMlpNrWPw/HSX3UkyNbg5HX5b0hCvGvuLMB4/GdrUv /Fnek60Uzs1l8lgJWJnuBV17xFwzhEh7HKElr9dUh+tj40QxBi7uB+n5GFwCzdb7 Et1fEd820B+5ZKdSSoBj3uAl0xFMB7j0b7IkyuBHDIbRTAgfewM= =K3Rv -----END PGP SIGNATURE----- --=-=-=--