From c4bdce3da8cc823b7cba58e69569abc886c278a3 Mon Sep 17 00:00:00 2001 From: Stas Degteff Date: Sat, 19 Feb 2011 01:05:28 +0000 Subject: [PATCH] Gentoo ebuild portage --- .../gentoo/portage/net-ftn/golded+/Manifest | 2 + .../portage/net-ftn/golded+/files/mygolded.h | 53 +++++++++++++ .../net-ftn/golded+/golded+-9999.ebuild | 74 +++++++++++++++++++ contrib/gentoo/portage/profiles/categories | 1 + contrib/gentoo/portage/profiles/repo_name | 1 + 5 files changed, 131 insertions(+) create mode 100644 contrib/gentoo/portage/net-ftn/golded+/Manifest create mode 100644 contrib/gentoo/portage/net-ftn/golded+/files/mygolded.h create mode 100644 contrib/gentoo/portage/net-ftn/golded+/golded+-9999.ebuild create mode 100644 contrib/gentoo/portage/profiles/categories create mode 100644 contrib/gentoo/portage/profiles/repo_name diff --git a/contrib/gentoo/portage/net-ftn/golded+/Manifest b/contrib/gentoo/portage/net-ftn/golded+/Manifest new file mode 100644 index 0000000..abf22e5 --- /dev/null +++ b/contrib/gentoo/portage/net-ftn/golded+/Manifest @@ -0,0 +1,2 @@ +AUX mygolded.h 1818 RMD160 d910c120ff147a3dc5f19b711ec7c364044b3fe9 SHA1 b0b4ffc0fe3ba90b9c91d123ce0cb2801dec54c5 SHA256 54511c5574c67deee2f29983d7c78dbe72c40de1f637558dacf096331686d9ea +EBUILD golded+-9999.ebuild 1602 RMD160 b8228d113e9e3026b2404bdfa60a13068dec545c SHA1 f2fa3833a688dca53b0767d57b4040b606a77cd2 SHA256 0df077f45725bc9b3ad119c1095c610b9869a7250446f1d4e554f8bcbd353da6 diff --git a/contrib/gentoo/portage/net-ftn/golded+/files/mygolded.h b/contrib/gentoo/portage/net-ftn/golded+/files/mygolded.h new file mode 100644 index 0000000..04d7931 --- /dev/null +++ b/contrib/gentoo/portage/net-ftn/golded+/files/mygolded.h @@ -0,0 +1,53 @@ + +// ------------------------------------------------------------------ +// GoldED+ +// Personalized strings. +// ------------------------------------------------------------------ +// $Id$ +// ------------------------------------------------------------------ +// Please do not modify this file. It's just a template for your +// local "mygolded.h" settings file. So please change your copy only. + +// ------------------------------------------------------------------ +// Please edit these fields to match your real name + +#undef __GVER_VENDOR_NAME__ +#define __GVER_VENDOR_NAME__ "Semen Panevin" +#undef __GVER_VENDOR_FIDO__ +#define __GVER_VENDOR_FIDO__ "2:5025/121" +#undef __GVER_VENDOR_EMAIL__ +#define __GVER_VENDOR_EMAIL__ "panevin@box.vsi.ru" + + +// ------------------------------------------------------------------ +// If you have an important message every user should read, put it +// here in. If you don't, leave it as default. ;-) + +#undef __GVER_RELEASENAME__ +#define __GVER_RELEASENAME__ __GVER_VENDOR_NAME__"\'s public edition" + + +// ------------------------------------------------------------------ +// It is highly recommended to leave these fields unchanged. +// They are reserved for future use. + +#undef __GVER_PRENAME__ +#define __GVER_PRENAME__ "" +#undef __GVER_POSTNAME__ +#define __GVER_POSTNAME__ "+" +#undef __GVER_PRESHORTNAME__ +#define __GVER_PRESHORTNAME__ "" +#undef __GVER_POSTSHORTNAME__ +#define __GVER_POSTSHORTNAME__ "+" + + +// ------------------------------------------------------------------ +// Version numbers. + +#undef __GVER_PREVERSION__ +#define __GVER_PREVERSION__ "" +#undef __GVER_POSTVERSION__ +#define __GVER_POSTVERSION__ "" +__GVER__(1,1,5) + +// ------------------------------------------------------------------ diff --git a/contrib/gentoo/portage/net-ftn/golded+/golded+-9999.ebuild b/contrib/gentoo/portage/net-ftn/golded+/golded+-9999.ebuild new file mode 100644 index 0000000..7697748 --- /dev/null +++ b/contrib/gentoo/portage/net-ftn/golded+/golded+-9999.ebuild @@ -0,0 +1,74 @@ +# Copyright 1999-2006 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=2 + +ECVS_AUTH="pserver" +ECVS_SERVER="golded-plus.cvs.sourceforge.net:/cvsroot/golded-plus" +ECVS_MODULE="${PN}" +ECVS_LOCALNAME="${PN}" + +inherit cvs + +DESCRIPTION="FTN Editor ${PN}" +SRC_URI="" +HOMEPAGE="http://golded-plus.sourceforge.net" + +LICENSE="LGPL-2" +SLOT="0" +KEYWORDS="~x86 ~amd64" +IUSE="spell -doc" +DEPEND=">=sys-libs/ncurses-5.4 + spell? ( app-dicts/myspell-${LINGUAS} ) + doc? ( sys-apps/texinfo )" + +S="${WORKDIR}/${ECVS_LOCALNAME}" + +src_unpack() { + cvs_src_unpack +} + +src_prepare() { + cd "${S}" + + # Add header with personal configuration + cp ${FILESDIR}/mygolded.h ./golded3/mygolded.h + + # Disable MS Office spellchecker support + sed -i 's/#CPPFLAGS+=-DGCFG_NO_MSSPELL/CPPFLAGS+=-DGCFG_NO_MSSPELL/' ./Config.def + + # Disable HunSpell spellchecker support if need + use spell || sed -i 's/#CPPFLAGS+=-DGCFG_NO_MYSPELL/CPPFLAGS+=-DGCFG_NO_MYSPELL/' ./Config.def + +} + +src_compile() { + cd "${S}" + + emake PLATFORM=lnx + use doc && emake docs +} + +src_install() { + cd "${S}" + + dobin bin/gedlnx bin/gnlnx bin/rddtlnx + doman docs/*.1 + if useq doc ; then + dodoc docs/*.txt docs/notework.rus + dodoc manuals/*.txt + dohtml docs/*.html + fi + insinto /usr/share/golded-plus + doins bin/screenrc_koi8r + exeinto /etc/ftn/golded.sample + doexe bin/golded + insinto /etc/ftn/golded.sample/charset + doins cfgs/charset/* + insinto /etc/ftn/golded.sample/colorset + doins cfgs/colorset/* + insinto /etc/ftn/golded.sample/config + doins cfgs/config/* + insinto /etc/ftn/golded.sample/template + doins cfgs/template/* +} diff --git a/contrib/gentoo/portage/profiles/categories b/contrib/gentoo/portage/profiles/categories new file mode 100644 index 0000000..7395d15 --- /dev/null +++ b/contrib/gentoo/portage/profiles/categories @@ -0,0 +1 @@ +net-ftn \ No newline at end of file diff --git a/contrib/gentoo/portage/profiles/repo_name b/contrib/gentoo/portage/profiles/repo_name new file mode 100644 index 0000000..d97f207 --- /dev/null +++ b/contrib/gentoo/portage/profiles/repo_name @@ -0,0 +1 @@ +golded+ \ No newline at end of file