You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gentoo-overlay/app-text/expander/expander-2.0.5-r2.ebuild

52 lines
1.1 KiB

# Copyright 1999-2017 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
EAPI=4
inherit eutils toolchain-funcs
DESCRIPTION="Expander is a utility that acts as a filter for text editors"
HOMEPAGE="http://www.nedit.org"
SRC_URI="ftp://ftp.nedit.org/pub/contrib/misc/nedit_expander_kit_2.05.tar.gz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~x86 ~x86-linux ~ppc-macos"
IUSE=""
S=${WORKDIR}/${PN}
src_prepare() {
epatch "${FILESDIR}"/${P}-gentoo.patch
}
src_compile() {
emake -C src CC=$(tc-getCC)
}
src_install() {
cd src
dobin expander boxcomment align_columns align_comments where_is
dosym boxcomment /usr/bin/unboxcomment
insinto /usr/share/${P}
doins "${S}"/service
for x in defs macros misc templates ; do
insinto /usr/share/${P}/${x}
doins "${S}"/${x}/*
done
cd "${S}"/docs
doman *.1
cd "${S}"
dodoc ChangeLog INSTALL README USAGE
}
pkg_postinst() {
elog
elog "Instructions for using expander with NEdit are in /usr/share/doc/${PF}/INSTALL"
elog "Macro, definition and template files can be found in /usr/share/${P}"
elog
}