diff options
author | Arthur Zamarin <arthurzam@gentoo.org> | 2023-12-15 23:07:35 +0200 |
---|---|---|
committer | Arthur Zamarin <arthurzam@gentoo.org> | 2023-12-15 23:07:35 +0200 |
commit | 91199e2761999cba588a6e362cb3132c8befec4e (patch) | |
tree | e4ec260b78fbf8283cec9e266aebacc5fff03eaa /app-editors/fte/fte-20110708-r1.ebuild | |
parent | dev-util/ccls: Stabilize 0.20230717-r1 amd64, #920050 (diff) | |
download | gentoo-91199e2761999cba588a6e362cb3132c8befec4e.tar.gz gentoo-91199e2761999cba588a6e362cb3132c8befec4e.tar.bz2 gentoo-91199e2761999cba588a6e362cb3132c8befec4e.zip |
app-editors/fte: treeclean
Closes: https://bugs.gentoo.org/713402
Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>
Diffstat (limited to 'app-editors/fte/fte-20110708-r1.ebuild')
-rw-r--r-- | app-editors/fte/fte-20110708-r1.ebuild | 118 |
1 files changed, 0 insertions, 118 deletions
diff --git a/app-editors/fte/fte-20110708-r1.ebuild b/app-editors/fte/fte-20110708-r1.ebuild deleted file mode 100644 index eb206b0f89e6..000000000000 --- a/app-editors/fte/fte-20110708-r1.ebuild +++ /dev/null @@ -1,118 +0,0 @@ -# Copyright 1999-2023 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=6 - -inherit toolchain-funcs vcs-clean - -DESCRIPTION="Lightweight text-mode editor" -HOMEPAGE="http://fte.sourceforge.net" -SRC_URI=" - mirror://sourceforge/${PN}/${P}-src.zip - mirror://sourceforge/${PN}/${P}-common.zip" - -LICENSE="|| ( GPL-2 Artistic )" -SLOT="0" -KEYWORDS="~alpha amd64 ppc ~riscv -sparc x86 ~amd64-linux ~x86-linux ~ppc-macos" -IUSE="gpm slang X" - -S="${WORKDIR}/${PN}" - -RDEPEND=" - sys-libs/ncurses:0= - X? ( - x11-libs/libXdmcp - x11-libs/libXau - x11-libs/libX11 - x11-libs/libXpm - ) - gpm? ( >=sys-libs/gpm-1.20 )" -DEPEND="${RDEPEND} - slang? ( >=sys-libs/slang-2.1.3 ) - app-arch/unzip" - -HTML_DOCS=( doc/. ) - -set_targets() { - export TARGETS="" - use slang && TARGETS="${TARGETS} s${PN}" - use X && TARGETS="${TARGETS} x${PN}" - - [[ ${CHOST} == *-linux-gnu* ]] \ - && TARGETS="${TARGETS} v${PN}" \ - || TARGETS="${TARGETS} n${PN}" -} - -src_prepare() { - default - - if [[ -e "${EPREFIX}"/usr/include/linux/keyboard.h ]]; then - sed "${EPREFIX}"/usr/include/linux/keyboard.h \ - -e '/wait.h/d' > src/hacked_keyboard.h || die - fi - - sed \ - -e "s:<linux/keyboard.h>:\"hacked_keyboard.h\":" \ - -i src/con_linux.cpp || die "sed keyboard" - sed \ - -e 's:^OPTIMIZE:#&:g' \ - -e '/^LDFLAGS/s:=:+=:g' \ - -e 's:= g++:= $(CXX):g' \ - -i src/${PN}-unix.mak || die "sed CFLAGS, LDFLAGS, CC" - ecvs_clean -} - -src_configure() { - set_targets - sed \ - -e "s:@targets@:${TARGETS}:" \ - -e '/^XINCDIR =/c\XINCDIR =' \ - -e '/^XLIBDIR =/c\XLIBDIR = -lstdc++' \ - -e '/^SINCDIR =/c\SINCDIR = -I'"${EPREFIX}"'/usr/include/slang' \ - -i src/${PN}-unix.mak || die "sed targets" - - if ! use gpm; then - sed \ - -e "s:#define USE_GPM://#define USE_GPM:" \ - -i src/con_linux.cpp || die "sed USE_GPM" - sed \ - -e "s:-lgpm::" \ - -i src/fte-unix.mak || die "sed -lgpm" - fi -} - -src_compile() { - local os="-DLINUX" # by now the default in makefile - - DEFFLAGS="PREFIX='${EPREFIX}'/usr CONFIGDIR='${EPREFIX}'/usr/share/${PN} \ - DEFAULT_FTE_CONFIG=../config/main.${PN} UOS=${os}" - - set_targets - emake CXX="$(tc-getCXX)" OPTIMIZE="${CXXFLAGS}" "${DEFFLAGS}" TARGETS="${TARGETS}" all -} - -src_install() { - keepdir /etc/${PN} - into /usr - - set_targets - - local i files="${TARGETS} c${PN}" - for i in ${files}; do - dobin src/${i} - done - - dobin "${FILESDIR}/${PN}" - - einstalldocs - - insinto /usr/share/${PN} - doins -r config/. -} - -pkg_postinst() { - ebegin "Compiling configuration" - cd "${EPREFIX}"/usr/share/${PN} || die "missing configuration dir" - "${EPREFIX}"/usr/bin/c${PN} main.${PN} "${EPREFIX}"/etc/${PN}/system.${PN}rc || die - eend $? -} |