[prev in list] [next in list] [prev in thread] [next in thread] 

List:       gentoo-dev
Subject:    [gentoo-dev] ebuild syntax file for midnight commander
From:       "T'Eval" <teval () myrealbox ! com>
Date:       2003-12-29 6:58:49
[Download RAW message or body]

Is anyone interested in that?
I made one to help me learn how ebuilds work and what the
functions/variables are. I've found it useful in making new ebuilds, and
it's nice in places when you don't have a gui and only mc. If anyone is
interested, I could ask the mc people to add it in. I didn't add a bug
for it, because if noone is interested, there's no point.

It goes in /usr/share/mc/syntax and you'll need to add:

file ..\*\\.(ebuild)$ Ebuild/sFile
include ebuild.syntax

In /usr/share/mc/syntax/Syntax


Andrei

["ebuild.syntax" (ebuild.syntax)]

# Syntax highlighting for gentoo portage ebuilds
# 2003, Andrei Barbu, teval@myrealbox.com

context default

# Functions

    keyword whole src_install yellow
    keyword whole src_compile yellow
    keyword whole src_unpack yellow
    keyword whole pkg_setup yellow
    keyword whole pkg_nofetch yellow
    keyword whole pkg_preinst yellow
    keyword whole pkg_postinst yellow
    keyword whole pkg_postrm yellow
    keyword whole pkg_prerm yellow
    keyword whole pkg_config yellow
    
# Helper functions

    keyword whole use yellow
    keyword whole has_version yellow
    keyword whole best_version yellow
    keyword whole use_with 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
    
# Scripts and Programs

    keyword whole diropts yellow
    keyword whole dobin 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 yellow
    keyword whole dolib.a yellow
    keyword whole dolib.so yellow
    keyword whole doman yellow
    keyword whole dosbin yellow
    keyword whole dosym yellow
    keyword whole emake 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
 
# Variables
    keyword whole P white
    keyword whole PN white
    keyword whole PV white
    keyword whole PR white
    keyword whole PVR white 
    keyword whole A white
    keyword whole WORKDIR white
    keyword whole FILESDIR white
    keyword whole S white
    keyword whole T white
    keyword whole D white
    keyword whole SLOT white
    keyword whole LICENSE white
    keyword whole KEYWORDS white
    keyword whole DESCRIPTION white
    keyword whole SRC_URI white
    keyword whole HOMEPAGE white
    keyword whole IUSE white
    keyword whole DEPEND white
    keyword whole RDEPEND white
    
    keyword "*" green
# Comments
    


--
gentoo-dev@gentoo.org mailing list

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic