diff options
author | Michael Weber <xmw@gentoo.org> | 2012-07-18 15:17:51 +0000 |
---|---|---|
committer | Michael Weber <xmw@gentoo.org> | 2012-07-18 15:17:51 +0000 |
commit | 4920b42b7003d031136e8b5038381d035aa7a613 (patch) | |
tree | 18e8b4c8d7e3b78d73b5d8266e0333739a8e67da /www-client/netsurf | |
parent | Don't assign useless values to DESCRIPTION and HOMEPAGE variables. (diff) | |
download | historical-4920b42b7003d031136e8b5038381d035aa7a613.tar.gz historical-4920b42b7003d031136e8b5038381d035aa7a613.tar.bz2 historical-4920b42b7003d031136e8b5038381d035aa7a613.zip |
Initial import
Package-Manager: portage-2.1.11.8/cvs/Linux x86_64
Diffstat (limited to 'www-client/netsurf')
-rw-r--r-- | www-client/netsurf/ChangeLog | 10 | ||||
-rw-r--r-- | www-client/netsurf/Manifest | 17 | ||||
-rw-r--r-- | www-client/netsurf/files/netsurf-2.9-buildsystem.patch | 13 | ||||
-rw-r--r-- | www-client/netsurf/files/netsurf-2.9-includes.patch | 10 | ||||
-rw-r--r-- | www-client/netsurf/metadata.xml | 21 | ||||
-rw-r--r-- | www-client/netsurf/netsurf-2.9.ebuild | 137 |
6 files changed, 208 insertions, 0 deletions
diff --git a/www-client/netsurf/ChangeLog b/www-client/netsurf/ChangeLog new file mode 100644 index 000000000000..e0163e3d8d49 --- /dev/null +++ b/www-client/netsurf/ChangeLog @@ -0,0 +1,10 @@ +# ChangeLog for www-client/netsurf +# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/www-client/netsurf/ChangeLog,v 1.1 2012/07/18 15:17:51 xmw Exp $ + +*netsurf-2.9 (18 Jul 2012) + + 18 Jul 2012; Michael Weber <xmw@gentoo.org> + +files/netsurf-2.9-buildsystem.patch, +files/netsurf-2.9-includes.patch, + +metadata.xml, +netsurf-2.9.ebuild: + Initial import diff --git a/www-client/netsurf/Manifest b/www-client/netsurf/Manifest new file mode 100644 index 000000000000..c91029a7e64c --- /dev/null +++ b/www-client/netsurf/Manifest @@ -0,0 +1,17 @@ +-----BEGIN PGP SIGNED MESSAGE----- +Hash: SHA256 + +AUX netsurf-2.9-buildsystem.patch 619 SHA256 5065e2c396321384eb862012e605bc37833e698f4980cf2924a310b287c8d81e SHA512 7ab2df0ad68b8c9d50dbe32513da836e3e2a2594d56afeca12c71d666e0e506723c13613202428bfc9f77c04017321cacbfd4fa2cf65b49dc881b0df2ed0daec WHIRLPOOL f2e4f526d8aa90276f8cf7a9dd1026482a6846dda113b78e5e7fb910b07c7b1f16d956f43cd58671871877058e31b2a948e62f102a70b7b76c2d57e328cd7a07 +AUX netsurf-2.9-includes.patch 202 SHA256 a832ab60474e8967b7203c502ba3c5cc9f2146ee617729484053e6004388b46e SHA512 1770f2762c2539d64cc1727bb3fdeff1b0929ac15731346eddc18ec2d49c4e6b182ecb96259a1138baabb9d7cea365fbb9e28a526d33d55b2da055d257772935 WHIRLPOOL 920b2c8be0ace0c3c584e0af80783c1bf91f468e12ec0422a9b176f12c68b6ac2f9576e3c330566fe699c104a3f8d2523b06692a4b81dc3116a8a39b0dcea5cb +DIST netsurf-2.9-full-src.tar.gz 4621932 SHA256 ade6ade7f66ce2f0a80df724bafefd18c17165166111c490837737aa2e09ae9d SHA512 8dfd4d845f5255ee4420c6d4454594eb34dda129096b4d6acb72bd00e976042e7caf80b075ed39d3d3bf3b070c297f73f889075200bd7fb3d2467ca8154c07f0 WHIRLPOOL dfd1151d1c92cf374f5223113328c43f12537c4bc9b17caa831fb5c1febbf70a27766f20bf333867e5104bb03b1cd39f02eed0d351ceec901f922b759d7b330b +DIST netsurf-fb.modes-example.gz 4586 SHA256 df1514790be120f27bd23dfdca71c24112679d45d3cbd3916f9231ec5e2596bb SHA512 753a707dc428212803dd64250bb723a498fdc1c328fdac4df38be533eab3af45f727cdc6b7ced3faaa0e82db182c4eab140b8e81b0d3cfe2152252b89e6d2981 WHIRLPOOL 5a91c32a712b746c993d2fa1d47625f16241e845d556b8113ab957eda7385ac5bdde5f78b0de2dad4df544c7d7c13d8145ebb9d81272af9a3759ad4e307c3767 +EBUILD netsurf-2.9.ebuild 3952 SHA256 78946de802b88fe0426707a6790b2bd87e35951437db2f8f09d9ab6e35efae26 SHA512 d2bce5d2445b81c913277faee75012ce9df6ef8e5efbd244d46fad3079b4a9216246c4aba1b634c71b99cee792d12ae16e9e6ceb531b38b4ce18c1b8f9c3a94b WHIRLPOOL e0d343596cf93c7015f4ac1620ff4ffd1ded31d0a7a68e9b6f6664200d629f3c765d928ce38216a538c65a0073707cff78b9a2632bd10ada7dbbf42134ad1001 +MISC ChangeLog 410 SHA256 daca0227aea071c82a331116cc2566271c6310b2c5f1303faca4cccf5364634b SHA512 9a35a4a5920241089b014dc545754e0850bbc2e27dd1c47724ef3d34f595957a0fa0fa094c74594bfa9073d7e9b3fbf1e28e354431f27be2efa0204b7ecba76e WHIRLPOOL 7ef3fb7b84ec403af11995c2e67502bbb58807d8bfc9c7ceb7738bc94f514e6f62b4d1cb27ec3e6d173c75541a91fe3de497f6a18a5af2e5f002d03509d61202 +MISC metadata.xml 1217 SHA256 553b676c6daeaac5a19388d24a96b04437bf092cc5ee6d53f7d32b98ce6f790c SHA512 480dd375e9ef904a9151221593c458380f073a8dcda04629dfece87bdfa939d1f1f1ec748e13a14e137f51ea68b7f99340528762439981c10b35fcbdce46d01e WHIRLPOOL 3bdd5cf4fd4389e3c64c26fdb49e53a18f4488c7fbde21e7724d9967f3401b2329b45e643bede3fbb300a2cbd78380f9163be65c0d17777831f50c286883a1ff +-----BEGIN PGP SIGNATURE----- +Version: GnuPG v2.0.19 (GNU/Linux) + +iF4EAREIAAYFAlAG02IACgkQknrdDGLu8JAoRAD/W26OmnN42dz1QHqUwjGhZEAH +ULYGR8R+FiTW2VmBf50A/R2q1x8oniQP13O1BmBToni48fDyAXfG02YHZunaRcNy +=WOmB +-----END PGP SIGNATURE----- diff --git a/www-client/netsurf/files/netsurf-2.9-buildsystem.patch b/www-client/netsurf/files/netsurf-2.9-buildsystem.patch new file mode 100644 index 000000000000..14c0070cf599 --- /dev/null +++ b/www-client/netsurf/files/netsurf-2.9-buildsystem.patch @@ -0,0 +1,13 @@ +--- netsurf-2.9/framebuffer/Makefile.target ++++ netsurf-2.9/framebuffer/Makefile.target +@@ -39,6 +39,10 @@ + $(eval $(call pkg_config_find_and_add,ROSPRITE,librosprite,Sprite)) + $(eval $(call pkg_config_find_and_add,BMP,libnsbmp,BMP)) + $(eval $(call pkg_config_find_and_add,GIF,libnsgif,GIF)) ++$(eval $(call pkg_config_find_and_add,NSSVG,libsvgtiny,NSSVG)) ++$(eval $(call pkg_config_find_and_add,RSVG,librsvg-2.0,RSVG)) ++$(eval $(call pkg_config_find_and_add,WEBP,libwebp,WEBP)) ++$(eval $(call pkg_config_find_and_add,VIDEO,gstreamer-0.10,VIDEO)) + + CFLAGS += -std=c99 -g -I. -Dsmall $(WARNFLAGS) \ + -D_BSD_SOURCE \ diff --git a/www-client/netsurf/files/netsurf-2.9-includes.patch b/www-client/netsurf/files/netsurf-2.9-includes.patch new file mode 100644 index 000000000000..ca1a7c95fff8 --- /dev/null +++ b/www-client/netsurf/files/netsurf-2.9-includes.patch @@ -0,0 +1,10 @@ +--- netsurf-2.9/framebuffer/font_internal.c ++++ netsurf-2.9/framebuffer/font_internal.c +@@ -18,6 +18,7 @@ + */ + + #include <inttypes.h> ++#include <string.h> + + #include <assert.h> + #include "css/css.h" diff --git a/www-client/netsurf/metadata.xml b/www-client/netsurf/metadata.xml new file mode 100644 index 000000000000..2cf3e3e96620 --- /dev/null +++ b/www-client/netsurf/metadata.xml @@ -0,0 +1,21 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<maintainer> +<email>xmw@gentoo.org</email> +<name>Michael Weber</name> +</maintainer> +<use> + <flag name="bmp">enable bmp bitmap support (media-libs/libnsbmp)</flag> + <flag name="freetype">use edia-libs/freetype for font rendering on framebuffer</flag> + <flag name="pdf-writer">Enable pdf output support (media-libs/libharu)</flag> + <flag name="rosprite">enable RISC OS Sprite bitmap support (media-libs/librosprite)</flag> + <flag name="svgtiny">enable svg image support via media-libs/svgatiny instead of gnome-base/librsvg</flag> + <flag name="webp">enable WebP image support (media-libs/libwebp)</flag> +</use> +<longdescription lang="en"> +NetSurf is a free, open source web browser. It is written in C, has its own layout and rendering engine entirely written from scratch. It is small and capable of handling many of the web standards in use today. +Whether you want to check your webmail, read the news or post to discussion forums, NetSurf is your lightweight gateway to the world wide web. Actively developed, NetSurf is continually evolving and improving. +</longdescription> +</pkgmetadata> + diff --git a/www-client/netsurf/netsurf-2.9.ebuild b/www-client/netsurf/netsurf-2.9.ebuild new file mode 100644 index 000000000000..86eef0be7247 --- /dev/null +++ b/www-client/netsurf/netsurf-2.9.ebuild @@ -0,0 +1,137 @@ +# Copyright 1999-2012 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/www-client/netsurf/netsurf-2.9.ebuild,v 1.1 2012/07/18 15:17:51 xmw Exp $ + +EAPI=4 + +inherit eutils multilib toolchain-funcs + +DESCRIPTION="a free, open source web browser" +HOMEPAGE="http://www.netsurf-browser.org/" +SRC_URI="http://download.netsurf-browser.org/${PN}/releases/source-full/${P}-full-src.tar.gz + http://xmw.de/mirror/netsurf-fb.modes-example.gz" + +LICENSE="GPL-2 MIT" +SLOT="0" +KEYWORDS="~amd64 ~arm" +IUSE="bmp fbcon freetype gif gstreamer gtk javascript jpeg mng pdf-writer png rosprite svg svgtiny webp" + +RDEPEND="dev-libs/libcss + net-libs/hubbub + net-libs/libdom + net-misc/curl + bmp? ( media-libs/libnsbmp ) + fbcon? ( dev-libs/libnsfb ) + freetype? ( + media-libs/freetype + media-fonts/dejavu + ) + gif? ( media-libs/libnsgif ) + gtk? ( dev-libs/glib:2 + gnome-base/libglade:2.0 + media-libs/lcms:0 + x11-libs/gtk+:2 ) + jpeg? ( virtual/jpeg ) + mng? ( media-libs/libmng ) + pdf-writer? ( media-libs/libharu ) + png? ( media-libs/libpng ) + svg? ( svgtiny? ( media-libs/libsvgtiny ) + !svgtiny? ( gnome-base/librsvg:2 ) ) + webp? ( media-libs/libwebp )" +DEPEND="${RDEPEND} + virtual/pkgconfig + rosprite? ( media-libs/librosprite )" + +REQUIRED_USE="|| ( fbcon gtk )" + +src_prepare() { + einfo "remove bundled libs" + cd "${WORKDIR}" || die + mv ${P} ${P}_complete || die + mv ${P}_complete/${P} . || die + rm -r ${P}_complete || die + + cd "${S}" + sed -e '/CFLAGS \(:\|+\)=/d' \ + -i Makefile.defaults || die + sed -e '/^#define NSFB_TOOLBAR_DEFAULT_LAYOUT/s:blfsrut:blfsrutc:' \ + -i framebuffer/gui.c || die + + epatch "${FILESDIR}"/${P}-buildsystem.patch + epatch "${FILESDIR}"/${P}-includes.patch +} + +src_configure() { + netsurf_set() { + echo "override $1 := $2" >> Makefile.config || die + } + netsurf_use() { + local val=${4:-NO} + use $2 && val=${3:-YES} + echo "override $1 := $val" >> Makefile.config || die + } + #see Makefile.defaults + netsurf_use NETSURF_USE_BMP bmp + netsurf_use NETSURF_USE_GIF gif + netsurf_use NETSURF_USE_JPEG jpeg + netsurf_use NETSURF_USE_PNG png + netsurf_use NETSURF_USE_MNG mng + netsurf_use NETSURF_USE_WEBP webp + netsurf_use NETSURF_USE_VIDEO gstreamer + netsurf_use NETSURF_USE_JS javascript + netsurf_use NETSURF_USE_HARU_PDF pdf-writer + netsurf_set PREFIX /usr + netsurf_set Q + netsurf_set CC $(tc-getCC) + netsurf_set LD $(tc-getCC) + + if use svg ; then + if use svgtiny ; then + netsurf_set NETSURF_USE_NSSVG YES + netsurf_set NETSURF_USE_RSVG NO + else + netsurf_set NETSURF_USE_NSSVG NO + netsurf_set NETSURF_USE_RSVG YES + fi + else + netsurf_set NETSURF_USE_NSSVG NO + netsurf_set NETSURF_USE_RSVG NO + fi + if use fbcon ; then + netsurf_set NETSURF_FB_FRONTEND linux + netsurf_use NETSURF_FB_FONTLIB freetype freetype internal + netsurf_set NETSURF_FB_FONTPATH /usr/share/fonts/dejavu + fi + netsurf_use NETSURF_USE_ROSPRITE rosprite +} + +src_compile() { + use gtk && emake PREFIX="/usr" TARGET=gtk + use fbcon && emake PREFIX="/usr" TARGET=framebuffer +} + +src_install() { + if use gtk ; then + emake DESTDIR="${D}" PREFIX="/usr" TARGET=gtk install + mv "${D}"/usr/bin/netsurf{,-gtk} || die + make_desktop_entry /usr/bin/netsurf-gtk NetSurf-gtk netsurf "Network;WebBrowser" + fi + if use fbcon ; then + emake DESTDIR="${D}" PREFIX="/usr" TARGET=framebuffer install + mv "${D}"/usr/bin/netsurf{,-fb} || die + make_desktop_entry /usr/bin/netsurf-fb NetSurf-framebuffer netsurf "Network;WebBrowser" + + einfo + elog "In order to setup the framebuffer console, netsurf needs an /etc/fb.modes" + elog "You can use an example from /usr/share/doc/${PF}/fb.modes.* (bug 427092)." + einfo + elog "Please make /etc/input/mice readable to the account using netsurf-fb." + elog "Either use chmod a+r /etc/input/mice (security!!!) or use an group." + einfo + fi + insinto /usr/share/pixmaps + doins gtk/res/netsurf.xpm + + dodoc -r Docs/{USING-*,ideas} + newdoc "${WORKDIR}"/netsurf-fb.modes-example fb.modes +} |