diff options
-rw-r--r-- | x11-libs/gtksourceview/ChangeLog | 9 | ||||
-rw-r--r-- | x11-libs/gtksourceview/files/2.0/gentoo.lang | 113 | ||||
-rw-r--r-- | x11-libs/gtksourceview/files/digest-gtksourceview-2.0.1-r1 | 3 | ||||
-rw-r--r-- | x11-libs/gtksourceview/gtksourceview-2.0.1-r1.ebuild | 37 |
4 files changed, 161 insertions, 1 deletions
diff --git a/x11-libs/gtksourceview/ChangeLog b/x11-libs/gtksourceview/ChangeLog index b72826893aa7..ba3ca7f21b55 100644 --- a/x11-libs/gtksourceview/ChangeLog +++ b/x11-libs/gtksourceview/ChangeLog @@ -1,6 +1,13 @@ # ChangeLog for x11-libs/gtksourceview # Copyright 2000-2007 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/x11-libs/gtksourceview/ChangeLog,v 1.104 2007/10/18 11:56:37 remi Exp $ +# $Header: /var/cvsroot/gentoo-x86/x11-libs/gtksourceview/ChangeLog,v 1.105 2007/10/24 01:37:37 dang Exp $ + +*gtksourceview-2.0.1-r1 (24 Oct 2007) + + 24 Oct 2007; Daniel Gryniewicz <dang@gentoo.org> +files/2.0/gentoo.lang, + +gtksourceview-2.0.1-r1.ebuild: + Bump to 2.0.1-r1 + - add gentoo language file; bug #194462 18 Oct 2007; Rémi Cardona <remi@gentoo.org> gtksourceview-2.0.1.ebuild: force system libpcre usage diff --git a/x11-libs/gtksourceview/files/2.0/gentoo.lang b/x11-libs/gtksourceview/files/2.0/gentoo.lang new file mode 100644 index 000000000000..76ae66f25840 --- /dev/null +++ b/x11-libs/gtksourceview/files/2.0/gentoo.lang @@ -0,0 +1,113 @@ +<?xml version="1.0" encoding="UTF-8"?> + +<!-- + GtkSourceView syntax highlight for Gentoo-specific files + + Originally written for gtksourceview-1.x by: + Leonardo Ferreira Fontenelle <leo.fontenelle@gmail.com>, 2006. + Rewritten for gtksourceview-2 by: + Rene 'Necoro' Neumann <necoro@necoro.net>, 2007 + + Distributed under the same license(s) as gtksourceview. + + TODO: + - do not highlight "enable" in the configure options + - perhaps highlight portage variables and portage functions different + +--> + +<language name="gentoo" id="gentoo" version="2.0" _section="Scripts"> + <metadata> + <property name="mimetypes">text/plain</property> + <property name="globs">*.ebuild;*.eclass</property> + <property name="line-comment-start">#</property> + </metadata> + + <styles> + <style id="variable" _name="Portage variables" map-to="def:builtin" /> + <style id="command" _name="Portage command" map-to="def:type" /> + <style id="function" _name="Portage function" map-to="def:function" /> + </styles> + + <definitions> + + <!-- rewrite shell string to show highlighted variables --> + <context id="string" style-ref="def:string"> + <start>"</start> + <end>"</end> + <include> + <context ref="def:escape"/> + <context ref="def:line-continue"/> + <context ref="sh:variable1"/> + </include> + </context> + + <context id="string-2" style-ref="def:string"> + <start>'</start> + <end>'</end> + <include> + <context ref="def:escape"/> + <context ref="def:line-continue"/> + <context ref="sh:variable1"/> + </include> + </context> + + <!-- subprograms: + - $(..) is not supported currently in the normal sh.lang + - `...` is interpreted as string - I think the subshell behavior is more acurate --> + <context id="subprogram"> + <start>\$\(</start> + <end>\)</end> + <include> + <context sub-pattern="0" where="start" style-ref="sh:keyword"/> + <context sub-pattern="0" where="end" style-ref="sh:keyword"/> + <context ref="gentoo"/> + </include> + </context> + + <context id="subprogram-2"> + <start>`</start> + <end>`</end> + <include> + <context sub-pattern="0" where="start" style-ref="sh:keyword"/> + <context sub-pattern="0" where="end" style-ref="sh:keyword"/> + <context ref="gentoo"/> + </include> + </context> + + <!-- portage variables - currently unused --> + <context id="portvars" style-ref="variable"> + <match>\b((ARCH|HOMEPAGE|DESCRIPTION|IUSE|SRC_URI|LICENSE|SLOT|KEYWORDS|FILESDIR|WORKDIR|(P|R)?DEPEND|PROVIDE|DISTDIR|RESTRICT|USERLAND)|(S|D|T|PV|PF|P|PN|A)|C(XX)?FLAGS|LDFLAGS|C(HOST|TARGET|BUILD))\b</match> + </context> + + <!-- portage functions - currently unused --> + <context id="portfuncs" style-ref="function"> + <match>^(src_(unpack|compile|install|test)|pkg_(config|nofetch|setup|(pre|post)(inst|rm)))</match> + </context> + + <!-- extra portage commands --> + <context id="portcmds" style-ref="command"> + <match>\b(e(begin|end|conf|install|make|warn|infon?|error|patch)|die|use(_(with|enable))?|inherit|has|(has|best)_version|unpack|(do|new)(ins|s?bin|doc|lib(|\.so|\.a)|man|info|exe|initd|confd|envd|pam|menu|icon)|do(python|sed|dir|hard|sym|html|jar|mo)|keepdir|prepall(|docs|info|man|strip)|prep(info|lib|lib\.(so|a)|man|strip)|(|doc|ins|exe)into|f(owners|perms)|(exe|ins|dir)opts)\b</match> + </context> + + <context id="built-in-command"> + <include> <!-- do not include "sh:built-in-command" as it is replaced down there - which would lead to an endless loop --> + <context ref="sh:built-in-command-1" /> + <context ref="sh:built-in-command-2" /> + <context ref="portcmds" /> + </include> + </context> + + <!-- gentoo is just a shell with the replacements --> + <replace id="sh:string" ref="string" /> + <replace id="sh:string-2" ref="string-2" /> + <replace id="sh:built-in-command" ref="built-in-command" /> + <replace id="sh:backtick-string" ref="subprogram-2" /> + <context id="gentoo"> + <include> + <context ref="subprogram"/> + <context ref="sh:sh"/> + </include> + </context> + </definitions> +</language> diff --git a/x11-libs/gtksourceview/files/digest-gtksourceview-2.0.1-r1 b/x11-libs/gtksourceview/files/digest-gtksourceview-2.0.1-r1 new file mode 100644 index 000000000000..669b2401a01b --- /dev/null +++ b/x11-libs/gtksourceview/files/digest-gtksourceview-2.0.1-r1 @@ -0,0 +1,3 @@ +MD5 b7848c5328e7576b1717d75c53063602 gtksourceview-2.0.1.tar.bz2 1017189 +RMD160 ebe4b4704f34703a3333794df2444ad8e40ade89 gtksourceview-2.0.1.tar.bz2 1017189 +SHA256 818bd8c6559fd4f4dd5cba219b9ec88dfb3ca989f8ba82c8ddf06ee8fe25dfa6 gtksourceview-2.0.1.tar.bz2 1017189 diff --git a/x11-libs/gtksourceview/gtksourceview-2.0.1-r1.ebuild b/x11-libs/gtksourceview/gtksourceview-2.0.1-r1.ebuild new file mode 100644 index 000000000000..0b2b621219ef --- /dev/null +++ b/x11-libs/gtksourceview/gtksourceview-2.0.1-r1.ebuild @@ -0,0 +1,37 @@ +# Copyright 1999-2007 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/x11-libs/gtksourceview/gtksourceview-2.0.1-r1.ebuild,v 1.1 2007/10/24 01:37:37 dang Exp $ + +inherit gnome2 eutils autotools + +DESCRIPTION="A text widget implementing syntax highlighting and other features" +HOMEPAGE="http://www.gnome.org/" + +LICENSE="GPL-2" +SLOT="2.0" +KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~sh ~sparc ~x86 ~x86-fbsd" +IUSE="doc" + +RDEPEND=">=x11-libs/gtk+-2.8 + >=dev-libs/libxml2-2.5 + >=dev-libs/glib-2 + >=dev-libs/libpcre-7.4" +DEPEND="${RDEPEND} + sys-devel/gettext + >=dev-util/intltool-0.35 + >=dev-util/pkgconfig-0.9 + doc? ( >=dev-util/gtk-doc-1 )" + +DOCS="AUTHORS ChangeLog HACKING MAINTAINERS NEWS README TODO" + +pkg_setup() { + # Removes the gnome-vfs dep + G2CONF="${G2CONF} --disable-build-tests --with-system-pcre" +} + +src_install() { + gnome2_src_install + + insinto /usr/share/${PN}-2.0/language-specs + doins "${FILESDIR}"/2.0/gentoo.lang +} |