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 | 7d5dcd0752e4b31af407e0fc1b8163bb85be1303 (patch) | |
tree | fa5778ea79e54ac79a0312136c662bf9fdb7d556 | |
parent | Don't assign useless values to DESCRIPTION and HOMEPAGE variables. (diff) | |
download | gentoo-2-7d5dcd0752e4b31af407e0fc1b8163bb85be1303.tar.gz gentoo-2-7d5dcd0752e4b31af407e0fc1b8163bb85be1303.tar.bz2 gentoo-2-7d5dcd0752e4b31af407e0fc1b8163bb85be1303.zip |
Initial import
(Portage version: 2.1.11.8/cvs/Linux x86_64)
-rw-r--r-- | www-client/netsurf/ChangeLog | 10 | ||||
-rw-r--r-- | www-client/netsurf/Manifest | 6 | ||||
-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, 197 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..3a9fc0abda20 --- /dev/null +++ b/www-client/netsurf/Manifest @@ -0,0 +1,6 @@ +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 3856 SHA256 99851110815d7fa5a476085222079366aa9c1a560ee8ee4900d26b4f3e8168f6 SHA512 89da15bb4beb4004ada503fde596cdb12419031c7d896fd9b154149e9a7608afdf6f9a724a6227f019d9a8e40d546469030a5223e9ed8294bc7efdf2ecc396a6 WHIRLPOOL 16724113d76fcd25344c86ad793f24edab7c01ea0edb82295247bd28ec670024089662a105f51866eb7751ac736144009f244b9939e04a22ab363913b0787bb9 +MISC metadata.xml 1217 SHA256 553b676c6daeaac5a19388d24a96b04437bf092cc5ee6d53f7d32b98ce6f790c SHA512 480dd375e9ef904a9151221593c458380f073a8dcda04629dfece87bdfa939d1f1f1ec748e13a14e137f51ea68b7f99340528762439981c10b35fcbdce46d01e WHIRLPOOL 3bdd5cf4fd4389e3c64c26fdb49e53a18f4488c7fbde21e7724d9967f3401b2329b45e643bede3fbb300a2cbd78380f9163be65c0d17777831f50c286883a1ff 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 +} |