summaryrefslogtreecommitdiff
blob: b535e77885da928dd239287b09f562d5f41f7611 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
# Copyright 1999-2000 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License, v2 or later
# Author Grant Goodyear <g2boojum@gentoo.org>
# $Header: /var/cvsroot/gentoo-x86/app-editors/bluefish/bluefish-0.6.ebuild,v 1.1 2001/07/03 15:42:38 g2boojum Exp $

#P=
A=${P}.tar.bz2
S=${WORKDIR}/${P}
DESCRIPTION="Bluefish is a GTK HTML editor for the experienced web designer or programmer."
SRC_URI="http://pkedu.fbt.eitn.wau.nl/~olivier/downloads/${A}"
HOMEPAGE="http://bluefish.openoffice.nl/"

DEPEND=">=x11-libs/gtk+-1.2
        media-libs/imlib"

src_compile() {

    try ./configure --prefix=/usr --host=${CHOST}
    try make

}

src_install () {

    mv Makefile Makefile.orig
    sed -e 's/$(datadir)/$(DESTDIR)$(datadir)/' \
        -e 's/$(pkgdatadir)/$(DESTDIR)$(pkgdatadir)/' \
        -e 's/$(pixmapsdir)/$(DESTDIR)$(pixmapsdir)/' \
	Makefile.orig > Makefile
    cd src
    mv Makefile Makefile.orig
    sed -e 's/$(bindir)/$(DESTDIR)$(bindir)/' \
	Makefile.orig > Makefile
    cd ..
    cd po
    mv Makefile Makefile.orig
    sed -e 's/$(datadir)/$(DESTDIR)$(datadir)/' \
        -e 's/$(gnulocaledir)/$(DESTDIR)$(gnulocaledir)/' \
        -e 's/$(localedir)/$(DESTDIR)$(localedir)/' \
	Makefile.orig > Makefile
    cd ..
    cd man
    mv Makefile Makefile.orig
    sed -e 's/$(mandir)/$(DESTDIR)$(mandir)/' \
	Makefile.orig > Makefile
    cd ..
    try make DESTDIR=${D} install
    dodoc ABOUT_NLS AUTHORS BUGS COPYING INSTALL NEWS README TODO

}