ulm         14/03/11 09:33:51

  Modified:             ChangeLog
  Added:                teco-1.00-r4.ebuild
  Log:
  Fix some compiler warnings. Inherit readme.gentoo.eclass.
  
  (Portage version: 2.2.8-r1/cvs/Linux x86_64, signed Manifest commit with key 
9433907D693FB5B8!)

Revision  Changes    Path
1.27                 app-editors/teco/ChangeLog

file : 
http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-editors/teco/ChangeLog?rev=1.27&view=markup
plain: 
http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-editors/teco/ChangeLog?rev=1.27&content-type=text/plain
diff : 
http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-editors/teco/ChangeLog?r1=1.26&r2=1.27

Index: ChangeLog
===================================================================
RCS file: /var/cvsroot/gentoo-x86/app-editors/teco/ChangeLog,v
retrieving revision 1.26
retrieving revision 1.27
diff -u -r1.26 -r1.27
--- ChangeLog   28 Feb 2013 17:56:16 -0000      1.26
+++ ChangeLog   11 Mar 2014 09:33:51 -0000      1.27
@@ -1,6 +1,12 @@
 # ChangeLog for app-editors/teco
-# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/app-editors/teco/ChangeLog,v 1.26 
2013/02/28 17:56:16 ulm Exp $
+# Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/app-editors/teco/ChangeLog,v 1.27 
2014/03/11 09:33:51 ulm Exp $
+
+*teco-1.00-r4 (11 Mar 2014)
+
+  11 Mar 2014; Ulrich Müller <u...@gentoo.org> +teco-1.00-r4.ebuild,
+  +files/teco-warnings.patch:
+  Fix some compiler warnings. Inherit readme.gentoo.eclass.
 
   28 Feb 2013; Ulrich Müller <u...@gentoo.org> teco-1.00-r3.ebuild:
   Fix build failure with separate tinfo library.



1.1                  app-editors/teco/teco-1.00-r4.ebuild

file : 
http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-editors/teco/teco-1.00-r4.ebuild?rev=1.1&view=markup
plain: 
http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-editors/teco/teco-1.00-r4.ebuild?rev=1.1&content-type=text/plain

Index: teco-1.00-r4.ebuild
===================================================================
# Copyright 1999-2014 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/app-editors/teco/teco-1.00-r4.ebuild,v 1.1 
2014/03/11 09:33:51 ulm Exp $

EAPI=5

inherit eutils toolchain-funcs flag-o-matic readme.gentoo

DESCRIPTION="Classic TECO editor, Predecessor to EMACS"
HOMEPAGE="http://www.ibiblio.org/pub/linux/apps/editors/tty/ 
http://www.ibiblio.org/pub/academic/computer-science/history/pdp-11/teco";
SRC_URI="http://www.ibiblio.org/pub/linux/apps/editors/tty/teco.tar.gz
        doc? ( mirror://gentoo/tecolore.txt.gz
                mirror://gentoo/tech.txt.gz
                mirror://gentoo/teco.doc.gz
                mirror://gentoo/tecoprog.doc.gz )"

LICENSE="freedist"
SLOT="0"
KEYWORDS="~alpha ~amd64 ~ppc ~x86 ~amd64-linux ~x86-linux ~ppc-macos 
~sparc-solaris ~x86-solaris"
IUSE="doc"

RDEPEND="sys-libs/ncurses"
DEPEND="${RDEPEND}
        virtual/pkgconfig"

S="${WORKDIR}"

src_unpack() {
        unpack teco.tar.gz
        if use doc; then
                mkdir doc
                cd doc || die
                unpack tecolore.txt.gz tech.txt.gz teco.doc.gz tecoprog.doc.gz
        fi
}

src_prepare() {
        local pkg_config=$("$(tc-getPKG_CONFIG)" --libs ncurses)
        sed -i -e "s:\$(CC):& \$(LDFLAGS):;s:-ltermcap:${pkg_config}:" \
                Makefile || die
        # bug 103257
        epatch "${FILESDIR}"/${PN}-double-free.diff
        epatch "${FILESDIR}"/${PN}-gcc4.patch
        epatch "${FILESDIR}"/${PN}-warnings.patch
}

src_compile() {
        append-flags -ansi
        append-cppflags -D_POSIX_SOURCE
        emake CC="$(tc-getCC)" CFLAGS="${CFLAGS}"
}

src_install() {
        dobin te
        doman te.1
        dodoc sample.tecorc sample.tecorc2 READ.ME MANIFEST
        if use doc; then
                cd doc
                dodoc tecolore.txt tech.txt teco.doc tecoprog.doc
        fi

        DOC_CONTENTS="The TECO binary is called te.
                \nSample configurations and documentation are available
                in /usr/share/doc/${PF}/."
        readme.gentoo_create_doc
}




Reply via email to