2013-01-13 16:47:04 +04:00
|
|
|
# Copyright 1999-2013 Gentoo Foundation
|
|
|
|
# Distributed under the terms of the GNU General Public License v2
|
2013-07-14 21:23:35 +04:00
|
|
|
# $Header: /var/cvsroot/gentoo-x86/app-misc/devtodo/devtodo-0.1.20-r1.ebuild,v 1.2 2013/07/13 11:20:03 jlec Exp $
|
2013-01-13 16:47:04 +04:00
|
|
|
|
|
|
|
EAPI="5"
|
|
|
|
|
|
|
|
AUTOTOOLS_AUTORECONF=1
|
|
|
|
AUTOTOOLS_IN_SOURCE_BUILD=1
|
2013-07-14 21:23:35 +04:00
|
|
|
inherit autotools-utils bash-completion-r1 eutils flag-o-matic toolchain-funcs
|
2013-01-13 16:47:04 +04:00
|
|
|
|
|
|
|
DESCRIPTION="A nice command line todo list for developers"
|
|
|
|
HOMEPAGE="http://swapoff.org/DevTodo"
|
|
|
|
SRC_URI="http://swapoff.org/files/${PN}/${P}.tar.gz"
|
|
|
|
|
|
|
|
LICENSE="GPL-2"
|
|
|
|
SLOT="0"
|
|
|
|
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos"
|
|
|
|
IUSE=""
|
|
|
|
|
|
|
|
RDEPEND="
|
|
|
|
>=sys-libs/ncurses-5.2
|
|
|
|
>=sys-libs/readline-4.1"
|
|
|
|
DEPEND="${RDEPEND}"
|
|
|
|
|
|
|
|
DOCS=( AUTHORS ChangeLog QuickStart README doc/scripts.sh doc/scripts.tcsh doc/todorc.example )
|
|
|
|
PATCHES=(
|
|
|
|
"${FILESDIR}/${P}-gentoo.diff"
|
|
|
|
"${FILESDIR}/${P}-gcc43.patch"
|
|
|
|
)
|
|
|
|
|
|
|
|
src_prepare() {
|
|
|
|
# fix regex.h issue on case-insensitive file-systems #332235
|
2013-07-14 21:23:35 +04:00
|
|
|
sed \
|
|
|
|
-e 's/Regex.h/DTRegex.h/' \
|
|
|
|
-i util/Lexer.h util/Makefile.{am,in} util/Regex.cc || die
|
2013-01-13 16:47:04 +04:00
|
|
|
mv util/{,DT}Regex.h || die
|
|
|
|
|
2013-07-14 21:23:35 +04:00
|
|
|
sed \
|
|
|
|
-e "/^LIBS/s:$: $($(tc-getPKG_CONFIG) --libs ncursesw):g" \
|
|
|
|
-i src/Makefile.am || die
|
|
|
|
|
2013-01-13 16:47:04 +04:00
|
|
|
autotools-utils_src_prepare
|
|
|
|
}
|
|
|
|
|
|
|
|
src_configure() {
|
|
|
|
replace-flags -O[23] -O1
|
|
|
|
|
|
|
|
local myeconfargs=(
|
|
|
|
--sysconfdir="${EPREFIX}/etc/devtodo"
|
|
|
|
)
|
|
|
|
autotools-utils_src_configure
|
|
|
|
}
|
|
|
|
|
|
|
|
src_install() {
|
|
|
|
autotools-utils_src_install
|
|
|
|
|
|
|
|
newbashcomp contrib/${PN}.bash-completion ${PN}
|
|
|
|
rm contrib/${PN}.bash-completion || die 'rm failed'
|
|
|
|
|
|
|
|
dodoc -r contrib
|
|
|
|
}
|
|
|
|
|
|
|
|
pkg_postinst() {
|
|
|
|
elog "Because of a conflict with app-misc/tdl, the tdl symbolic link"
|
|
|
|
elog "and manual page have been removed."
|
|
|
|
}
|