|
|
# Copyright 1999-2005 Gentoo Foundation |
# Copyright 1999-2006 Gentoo Foundation |
# Distributed under the terms of the GNU General Public License v2 | # Distributed under the terms of the GNU General Public License v2 |
# $Header: /var/cvsroot/gentoo-x86/app-vim/cream/cream-0.32.ebuild,v 1.7 2005/07/09 16:18:12 swegener Exp $ |
# $Header: $ |
| |
inherit vim-plugin eutils |
inherit vim-plugin eutils fdo-mime |
| |
DESCRIPTION="Cream is an easy-to-use configuration of the GVim text editor" | DESCRIPTION="Cream is an easy-to-use configuration of the GVim text editor" |
HOMEPAGE="http://cream.sourceforge.net" | HOMEPAGE="http://cream.sourceforge.net" |
|
|
IUSE="" | IUSE="" |
LICENSE="GPL-2" | LICENSE="GPL-2" |
SLOT="0" | SLOT="0" |
KEYWORDS="x86 sparc ppc mips amd64 alpha ia64" |
KEYWORDS="~x86 ~sparc ~ppc ~mips ~amd64 ~alpha ~ia64" |
| |
DEPEND="" | DEPEND="" |
RDEPEND=">=app-editors/gvim-6.2 | RDEPEND=">=app-editors/gvim-6.2 |
|
|
\ - the Cream FAQ: | \ - the Cream FAQ: |
file://${ROOT}usr/share/doc/${PF}/html/faq.html" | file://${ROOT}usr/share/doc/${PF}/html/faq.html" |
| |
|
# Utility function to rename a Vim help file and its links/anchors: |
|
# prefix_help_file prefix file [pattern ...] |
|
prefix_help_file() { |
|
local prefix="${1}" ; shift |
|
local helpfile="${1}" ; shift |
|
while [[ -n "${1}" ]] ; do |
|
sed -i "s:\([*|]\)\(${1}[*|]\):\1${prefix}-\2:g" "${helpfile}" \ |
|
|| die "Failed to sed \"${1}\" on \"${helpfile}\"" |
|
shift |
|
done |
|
mv "${helpfile}" "${helpfile%/*}/${prefix}-${helpfile##*/}" \ |
|
|| die "Failed to rename \"${helpfile}\"" |
|
} |
|
|
src_unpack() { | src_unpack() { |
mkdir -p ${S}/spelldicts | mkdir -p ${S}/spelldicts |
| |
|
|
| |
# make taglist ebuild aware, bug #66052 | # make taglist ebuild aware, bug #66052 |
epatch ${FILESDIR}/${PN}-0.30-ebuilds.patch | epatch ${FILESDIR}/${PN}-0.30-ebuilds.patch |
|
|
|
# rename vim help files to avoid conflicts with other vim packages |
|
prefix_help_file cream help/EnhancedCommentify.txt \ |
|
'EnhancedCommentify' 'EnhComm-[a-zA-Z]\+' |
|
prefix_help_file cream help/opsplorer.txt \ |
|
'opsplorer\.txt' 'opsplorer_[a-z_]\+' |
} | } |
| |
src_install() { | src_install() { |
# install launcher and menu entry | # install launcher and menu entry |
dobin cream | dobin cream |
insinto /usr/share/applications |
domenu cream.desktop |
doins cream.desktop |
doicon cream.svg cream.png |
insinto /usr/share/icons |
|
doins cream.svg cream.png |
|
| |
# install shared vim files | # install shared vim files |
insinto /usr/share/vim/cream | insinto /usr/share/vim/cream |
doins *.vim creamrc | doins *.vim creamrc |
local dir | local dir |
for dir in addons bitmaps spelldicts filetypes ; do |
for dir in addons bitmaps filetypes lang spelldicts ; do |
cp -R ${dir} ${D}/usr/share/vim/cream |
insinto /usr/share/vim/cream/${dir} |
|
doins ${dir}/* |
done | done |
dodir /usr/share/vim/vimfiles |
insinto /usr/share/vim/vimfiles/doc |
cp -R help ${D}/usr/share/vim/vimfiles/doc |
doins help/*.txt |
| |
# install docs | # install docs |
dodoc docs/* |
dodoc docs/{CHANGELOG,DEVELOPER,KEYBOARD,PressRelease,README,RELEASE}.txt |
dohtml docs-html/* | dohtml docs-html/* |
|
# html doc may be opened from Cream GUI |
|
dosym ../../doc/${PF}/html /usr/share/vim/cream/docs-html |
} | } |
| |
pkg_setup() { | pkg_setup() { |
|
|
epause | epause |
} | } |
| |
|
pkg_postinst() { |
|
fdo-mime_desktop_database_update |
|
vim-plugin_pkg_postinst |
|
} |
|
|
|
pkg_postrm() { |
|
fdo-mime_desktop_database_update |
|
vim-plugin_pkg_postrm |
|
} |