/[gentoo-x86]/app-office/plan/plan-1.9-r1.ebuild
Gentoo

Contents of /app-office/plan/plan-1.9-r1.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.4 - (show annotations) (download)
Wed Dec 26 13:52:53 2012 UTC (2 years, 6 months ago) by ulm
Branch: MAIN
Changes since 1.3: +2 -2 lines
Fix LICENSE, bug 448646.

(Portage version: 2.1.11.38/cvs/Linux x86_64, signed Manifest commit with key E7BE08CA7DC6EA25)

1 # Copyright 1999-2012 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/app-office/plan/plan-1.9-r1.ebuild,v 1.3 2012/10/24 19:00:33 ulm Exp $
4
5 EAPI=1
6
7 inherit eutils
8
9 DESCRIPTION="Motif based schedule planner"
10 HOMEPAGE="http://www.bitrot.de/plan.html"
11 SRC_URI="ftp://ftp.fu-berlin.de/unix/X11/apps/plan/${P}.tar.gz
12 mirror://gentoo/${P}-gentoo.tar.bz2"
13
14 LICENSE="GPL-2+" #448646
15 SLOT="0"
16 KEYWORDS="~amd64 ~hppa ~ppc ~sparc ~x86"
17 IUSE=""
18
19 DEPEND=">=x11-libs/motif-2.3:0"
20 RDEPEND="${DEPEND}"
21
22 S=${WORKDIR}/${P}/src
23
24 src_unpack() {
25 unpack ${A}
26 epatch "${WORKDIR}"/${P}-errno.patch
27 epatch "${WORKDIR}"/${P}-gentoo.patch
28 epatch "${WORKDIR}"/${P}-webplan.patch
29 epatch "${FILESDIR}"/makefile.patch
30 epatch "${FILESDIR}"/nostrip.patch
31 epatch "${FILESDIR}"/ldflags.patch
32 }
33
34 src_compile() {
35 emake CC=$(tc-getCC) SHARE=/usr/share/plan linux || die
36 }
37
38 src_install() {
39 emake \
40 DESTDIR="${D}" \
41 SHARE=/usr/share/plan \
42 install || die "install failed"
43 keepdir /usr/share/plan/netplan.dir
44
45 cd "${S}"/..
46 dodoc HISTORY README || die "dodoc failed"
47
48 cd "${S}"/../misc
49 doman netplan.1 plan.1 plan.4 || die "doman failed"
50
51 insinto /usr/share/${PN}/misc
52 doins netplan.boot BlackWhite Monochrome plan.fti Plan.xpm plan.xpm \
53 || die "misc files install failed"
54 exeinto /usr/share/${PN}/misc
55 doexe Killpland cvs vsc msschedule2plan plan2vcs || die "misc files install failed"
56
57 cd "${S}"/../web
58 insinto /usr/share/${PN}/web
59 doins help.html bottom.html cgi-lib.pl common.pl holiday_webplan rtsban.jpg \
60 || die "webplan install failed"
61 exeinto /usr/share/${PN}/web
62 doexe *.cgi || die "webplan install failed"
63 }
64
65 pkg_postinst() {
66 elog
67 elog " Check /usr/share/${PN}/holiday for examples to set your"
68 elog " ~/.holiday according to your country."
69 elog
70 elog " WebPlan ${PV} can be found in /usr/share/${PN}/web."
71 elog
72 }

  ViewVC Help
Powered by ViewVC 1.1.20