summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHeinrich Wendel <lanius@gentoo.org>2004-08-26 09:45:05 +0000
committerHeinrich Wendel <lanius@gentoo.org>2004-08-26 09:45:05 +0000
commit1d363c5ed491728cb513cfa96b441288fdea9598 (patch)
tree99c326b8ada89af28ef0376452ed8e178911113d /app-misc
parentmake it compile on kernel 2.6.8 and higher, bug #61203 (Manifest recommit) (diff)
downloadgentoo-2-1d363c5ed491728cb513cfa96b441288fdea9598.tar.gz
gentoo-2-1d363c5ed491728cb513cfa96b441288fdea9598.tar.bz2
gentoo-2-1d363c5ed491728cb513cfa96b441288fdea9598.zip
add syntax highlighting for .ebuild and .eclass files, bug #61075
Diffstat (limited to 'app-misc')
-rw-r--r--app-misc/mc/ChangeLog6
-rw-r--r--app-misc/mc/Manifest4
-rw-r--r--app-misc/mc/files/digest-mc-4.6.0-r102
-rw-r--r--app-misc/mc/files/ebuild.syntax87
-rw-r--r--app-misc/mc/files/mc-4.6.0-ebuild-syntax.patch12
-rw-r--r--app-misc/mc/mc-4.6.0-r10.ebuild105
6 files changed, 216 insertions, 0 deletions
diff --git a/app-misc/mc/ChangeLog b/app-misc/mc/ChangeLog
index 7d49995e8f3a..42c2dbbc09e5 100644
--- a/app-misc/mc/ChangeLog
+++ b/app-misc/mc/ChangeLog
@@ -1,6 +1,12 @@
# ChangeLog for app-misc/mc
# Copyright 2002-2004 Gentoo Foundation; Distributed under the GPL v2
+*mc-4.6.0-r10 (26 Aug 2004)
+
+ 26 Aug 2004; Heinrich Wendel <lanius@gentoo.org> +files/ebuild.syntax,
+ +files/mc-4.6.0-ebuild-syntax.patch, +mc-4.6.0-r10.ebuild:
+ add syntax highlighting for .ebuild and .eclass files, bug #61075
+
24 Aug 2004; Heinrich Wendel <lanius@gentoo.org> -mc-4.6.0-r8.ebuild,
mc-4.6.0-r9.ebuild:
mark stable on x86
diff --git a/app-misc/mc/Manifest b/app-misc/mc/Manifest
index 98dc8165cf15..b3836c7ca75f 100644
--- a/app-misc/mc/Manifest
+++ b/app-misc/mc/Manifest
@@ -1,16 +1,20 @@
MD5 f79a9b6d20e503ceb2011fabdf31cf30 mc-4.5.55-r7.ebuild 1869
MD5 e7db7f553193b22c5476e2edd47e8bce mc-4.6.0-r7.ebuild 2668
MD5 77f2522ccada42a8da7a279c1417ce40 mc-4.6.0-r9.ebuild 2608
+MD5 fc99eeab7b490dd22b5cb81ce0e1c638 mc-4.6.0-r10.ebuild 2747
MD5 30f84d0ac4c9e054247785cf45ad7bcf ChangeLog 7868
MD5 503ccb1138f9c49f0855884d830988a6 metadata.xml 253
MD5 f354988cbbb82187fa4eb1978def6903 mc-4.6.0-r5.ebuild 2573
MD5 d8853d9a555c715676945a15c98030c1 files/digest-mc-4.5.55-r7 125
MD5 169bb0ff53b2a9c5271503bbcbccf3df files/mc-4.6.0-find.patch 5798
+MD5 6356abe34b8907ad2cfedd4cf8ef365e files/mc-4.6.0-ebuild-syntax.patch 296
MD5 4df4331a2db0f5e9c0f2c0c9bb683fc3 files/mc-4.6.0-vfs.patch 336
+MD5 d576baf06c64df107664f4724b7632a2 files/digest-mc-4.6.0-r10 139
MD5 23a5069637af088015fe5f0de8c42883 files/mc-4.6.0-can-2004-0226-0231-0232.patch.bz2 20610
MD5 835695dda387b59a2497658f3f5af1d5 files/mc.gentoo 322
MD5 9f528fa7b6b4d2c202ce5f4e3a5173ba files/chdir-4.6.0.gentoo 159
MD5 2a6c3ed30597eadaa19a6dbdd3ce168d files/mc-4.6.0-cpan-2003-1023.patch 475
+MD5 302542a79969c12c92fc646cf11fff9c files/ebuild.syntax 2558
MD5 042fefdf0b2c229a62b4e18200099389 files/digest-mc-4.6.0-r5 214
MD5 042fefdf0b2c229a62b4e18200099389 files/digest-mc-4.6.0-r7 214
MD5 d576baf06c64df107664f4724b7632a2 files/digest-mc-4.6.0-r9 139
diff --git a/app-misc/mc/files/digest-mc-4.6.0-r10 b/app-misc/mc/files/digest-mc-4.6.0-r10
new file mode 100644
index 000000000000..c66b6aee0770
--- /dev/null
+++ b/app-misc/mc/files/digest-mc-4.6.0-r10
@@ -0,0 +1,2 @@
+MD5 70804dc9e2049e24f294ff7090a82a12 mc-4.6.0.tar.gz 3727676
+MD5 f5053361d1936b3e4187857daf0cc6cb mc-4.6.0-sambalib-3.0.0.patch.bz2 399920
diff --git a/app-misc/mc/files/ebuild.syntax b/app-misc/mc/files/ebuild.syntax
new file mode 100644
index 000000000000..2e8207fd2172
--- /dev/null
+++ b/app-misc/mc/files/ebuild.syntax
@@ -0,0 +1,87 @@
+context default
+ keyword linestart HOMEPAGE brightcyan
+ keyword linestart DESCRIPTION brightcyan
+ keyword linestart SRC_URI brightcyan
+ keyword linestart LICENSE brightcyan
+ keyword linestart SLOT brightcyan
+ keyword linestart KEYWORDS brightcyan
+ keyword linestart IUSE brightcyan
+ keyword linestart RESTRICT brightcyan
+ keyword linestart DEPEND brightcyan
+ keyword linestart RDEPEND brightcyan
+ keyword linestart PROVIDE brightcyan
+ keyword linestart S brightcyan
+
+ keyword whole local yellow
+ keyword whole use yellow
+ keyword whole has_version yellow
+ keyword whole best_version yellow
+ keyword whole use_with yellow
+ keyword whole use_enable yellow
+ keyword whole check_KV yellow
+ keyword whole keepdir yellow
+ keyword whole econf yellow
+ keyword whole einstall yellow
+ keyword whole die yellow
+ keyword whole einfo yellow
+ keyword whole emake yellow
+ keyword whole eerror yellow
+ keyword whole epatch yellow
+ keyword whole ebegin yellow
+ keyword whole eend yellow
+ keyword whole ewarn yellow
+ keyword whole unpack yellow
+
+ keyword whole diropts yellow
+ keyword whole dobin yellow
+ keyword whole docinto yellow
+ keyword whole dodir yellow
+ keyword whole dodoc yellow
+ keyword whole doexe yellow
+ keyword whole dohard yellow
+ keyword whole dohtml yellow
+ keyword whole doinfo yellow
+ keyword whole doins yellow
+ keyword whole dolib.a yellow
+ keyword whole dolib.so yellow
+ keyword whole dolib yellow
+ keyword whole doman yellow
+ keyword whole dosbin yellow
+ keyword whole dosym yellow
+ keyword whole exeinto yellow
+ keyword whole exeopts yellow
+ keyword whole fowners yellow
+ keyword whole fperms yellow
+ keyword whole insinto yellow
+ keyword whole insopts yellow
+ keyword whole into yellow
+ keyword whole libopts yellow
+ keyword whole newbin yellow
+ keyword whole newdoc yellow
+ keyword whole newexe yellow
+ keyword whole newins yellow
+ keyword whole newman yellow
+ keyword whole newsbin yellow
+ keyword whole prepall yellow
+ keyword whole prepalldocs yellow
+ keyword whole prepallinfo yellow
+ keyword whole prepallman yellow
+
+ keyword \= yellow
+ keyword ${+} brightgreen
+
+ keyword linestart abcdefghijklmnopqrstuvwxyz_\(\) brightmagenta
+
+ keyword *() brightcyan
+
+ keyword { magenta
+ keyword } magenta
+
+context linestart inherit \n magenta
+ keyword whole inherit yellow
+
+
+context # \n red
+
+context " " green
+ keyword ${+} brightgreen
diff --git a/app-misc/mc/files/mc-4.6.0-ebuild-syntax.patch b/app-misc/mc/files/mc-4.6.0-ebuild-syntax.patch
new file mode 100644
index 000000000000..ce59dd33e808
--- /dev/null
+++ b/app-misc/mc/files/mc-4.6.0-ebuild-syntax.patch
@@ -0,0 +1,12 @@
+--- Syntax 2004-08-20 22:52:37.145034864 +0200
++++ Syntax.new 2004-08-20 22:52:19.000000000 +0200
+@@ -116,6 +116,9 @@
+ file Don_t_match_me Mail\sfolder ^From\s
+ include mail.syntax
+
++file .\*\\.(ebuild|eclass)$ Gentoo\sEbuild
++include ebuild.syntax
++
+ file .\* unknown
+ include unknown.syntax
+
diff --git a/app-misc/mc/mc-4.6.0-r10.ebuild b/app-misc/mc/mc-4.6.0-r10.ebuild
new file mode 100644
index 000000000000..5655016a9228
--- /dev/null
+++ b/app-misc/mc/mc-4.6.0-r10.ebuild
@@ -0,0 +1,105 @@
+# Copyright 1999-2004 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/app-misc/mc/mc-4.6.0-r10.ebuild,v 1.1 2004/08/26 09:45:05 lanius Exp $
+
+inherit flag-o-matic eutils
+
+DESCRIPTION="GNU Midnight Commander cli-based file manager"
+HOMEPAGE="http://www.ibiblio.org/mc/"
+SRC_URI="http://www.ibiblio.org/pub/Linux/utils/file/managers/${PN}/${P}.tar.gz
+ http://www.spock.mga.com.pl/public/gentoo/${P}-sambalib-3.0.0.patch.bz2"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~ia64 x86 ~ppc ~sparc ~alpha ~mips ~hppa ~amd64 ppc64"
+IUSE="gpm nls samba ncurses X slang"
+
+DEPEND=">=sys-fs/e2fsprogs-1.19
+ ncurses? ( >=sys-libs/ncurses-5.2-r5 )
+ =dev-libs/glib-2*
+ >=sys-libs/pam-0.72
+ gpm? ( >=sys-libs/gpm-1.19.3 )
+ slang? ( >=sys-libs/slang-1.4.2 )
+ samba? ( >=net-fs/samba-3.0.0 )
+ X? ( virtual/x11 )"
+
+src_unpack() {
+ unpack ${P}.tar.gz
+ cd ${S}
+
+ epatch ${DISTDIR}/${P}-sambalib-3.0.0.patch.bz2
+
+ epatch ${FILESDIR}/${P}-find.patch
+ epatch ${FILESDIR}/${P}-cpan-2003-1023.patch
+ epatch ${FILESDIR}/${P}-can-2004-0226-0231-0232.patch.bz2
+ epatch ${FILESDIR}/${P}-vfs.patch
+ epatch ${FILESDIR}/${P}-ftp.patch
+}
+
+src_compile() {
+ filter-flags -malign-double
+
+ local myconf=""
+
+ if ! use slang && ! use ncurses ; then
+ myconf="${myconf} --with-screen=mcslang"
+ elif use ncurses && ! use slang ; then
+ myconf="${myconf} --with-screen=ncurses"
+ else
+ use slang && myconf="${myconf} --with-screen=slang"
+ fi
+
+ myconf="${myconf} `use_with gpm gpm-mouse`"
+
+ use nls \
+ && myconf="${myconf} --with-included-gettext" \
+ || myconf="${myconf} --disable-nls"
+
+ myconf="${myconf} `use_with X x`"
+
+ use samba \
+ && myconf="${myconf} --with-samba --with-configdir=/etc/samba
+ --with-codepagedir=/var/lib/samba/codepages --with-privatedir=/etc/samba/private" \
+ || myconf="${myconf} --without-samba"
+
+ econf \
+ --with-vfs \
+ --with-gnu-ld \
+ --with-ext2undel \
+ --with-edit \
+ --enable-charset \
+ ${myconf} || die
+
+ emake || die
+}
+
+src_install() {
+ cat ${FILESDIR}/chdir-4.6.0.gentoo >>\
+ ${S}/lib/mc-wrapper.sh
+
+ einstall || die
+
+ # install cons.saver setuid, to actually work
+ chmod u+s ${D}/usr/lib/mc/cons.saver
+
+ dodoc ChangeLog AUTHORS MAINTAINERS FAQ INSTALL* NEWS README*
+
+ insinto /usr/share/mc
+ doins ${FILESDIR}/mc.gentoo
+
+ insinto /usr/share/mc/syntax
+ doins ${FILESDIR}/ebuild.syntax
+
+ cd ${D}/usr/share/mc/syntax
+ epatch ${FILESDIR}/${P}-ebuild-syntax.patch
+}
+
+pkg_postinst() {
+ einfo "Add the following line to your ~/.bashrc to"
+ einfo "allow mc to chdir to its latest working dir at exit"
+ einfo ""
+ einfo "# Midnight Commander chdir enhancement"
+ einfo "if [ -f /usr/share/mc/mc.gentoo ]; then"
+ einfo " . /usr/share/mc/mc.gentoo"
+ einfo "fi"
+}