mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-08-06 00:48:18 -07:00
This commit represents a new era for Gentoo: Storing the gentoo-x86 tree in Git, as converted from CVS. This commit is the start of the NEW history. Any historical data is intended to be grafted onto this point. Creation process: 1. Take final CVS checkout snapshot 2. Remove ALL ChangeLog* files 3. Transform all Manifests to thin 4. Remove empty Manifests 5. Convert all stale $Header$/$Id$ CVS keywords to non-expanded Git $Id$ 5.1. Do not touch files with -kb/-ko keyword flags. Signed-off-by: Robin H. Johnson <robbat2@gentoo.org> X-Thanks: Alec Warner <antarus@gentoo.org> - did the GSoC 2006 migration tests X-Thanks: Robin H. Johnson <robbat2@gentoo.org> - infra guy, herding this project X-Thanks: Nguyen Thai Ngoc Duy <pclouds@gentoo.org> - Former Gentoo developer, wrote Git features for the migration X-Thanks: Brian Harring <ferringb@gentoo.org> - wrote much python to improve cvs2svn X-Thanks: Rich Freeman <rich0@gentoo.org> - validation scripts X-Thanks: Patrick Lauer <patrick@gentoo.org> - Gentoo dev, running new 2014 work in migration X-Thanks: Michał Górny <mgorny@gentoo.org> - scripts, QA, nagging X-Thanks: All of other Gentoo developers - many ideas and lots of paint on the bikeshed
58 lines
1.6 KiB
Bash
58 lines
1.6 KiB
Bash
# Copyright 1999-2015 Gentoo Foundation
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
# $Id$
|
|
|
|
EAPI="4"
|
|
|
|
inherit eutils
|
|
|
|
CODE2COLOR_PV="0.2"
|
|
CODE2COLOR_P="code2color-${CODE2COLOR_PV}"
|
|
DESCRIPTION="Excellent text file viewer"
|
|
HOMEPAGE="http://www.greenwoodsoftware.com/less/"
|
|
SRC_URI="http://www.greenwoodsoftware.com/less/${P}.tar.gz
|
|
http://www-zeuthen.desy.de/~friebel/unix/less/code2color -> ${CODE2COLOR_P}"
|
|
|
|
LICENSE="|| ( GPL-3 BSD-2 )"
|
|
SLOT="0"
|
|
KEYWORDS="alpha amd64 arm arm64 hppa ia64 m68k ~mips ppc ppc64 s390 sh sparc x86 ~ppc-aix ~amd64-fbsd ~sparc-fbsd ~x86-fbsd ~x64-freebsd ~x86-freebsd ~hppa-hpux ~ia64-hpux ~x86-interix ~amd64-linux ~arm-linux ~ia64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
|
|
IUSE="pcre unicode"
|
|
|
|
DEPEND=">=app-misc/editor-wrapper-3
|
|
>=sys-libs/ncurses-5.2
|
|
pcre? ( dev-libs/libpcre )"
|
|
RDEPEND="${DEPEND}"
|
|
|
|
src_unpack() {
|
|
unpack ${P}.tar.gz
|
|
cp "${DISTDIR}"/${CODE2COLOR_P} "${S}"/code2color || die
|
|
}
|
|
|
|
src_prepare() {
|
|
epatch "${FILESDIR}"/${CODE2COLOR_P}.patch
|
|
chmod a+x configure || die
|
|
}
|
|
|
|
src_configure() {
|
|
export ac_cv_lib_ncursesw_initscr=$(usex unicode)
|
|
export ac_cv_lib_ncurses_initscr=$(usex !unicode)
|
|
econf \
|
|
--with-regex=$(usex pcre pcre posix) \
|
|
--with-editor="${EPREFIX}"/usr/libexec/editor
|
|
}
|
|
|
|
src_install() {
|
|
default
|
|
|
|
dobin code2color
|
|
newbin "${FILESDIR}"/lesspipe.sh lesspipe
|
|
dosym lesspipe /usr/bin/lesspipe.sh
|
|
newenvd "${FILESDIR}"/less.envd 70less
|
|
|
|
dodoc "${FILESDIR}"/README.Gentoo
|
|
}
|
|
|
|
pkg_postinst() {
|
|
elog "lesspipe offers colorization options. Run 'lesspipe -h' for info."
|
|
}
|