summaryrefslogtreecommitdiff
blob: 653edc24e78b05b2614d57d45d3a1adc67aa6164 (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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
# Copyright 1999-2001 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License, v2 or later
# Author Achim Gottinger <achim@gentoo.org>
# $Header: /var/cvsroot/gentoo-x86/net-irc/bitchx/bitchx-1.0.18-r2.ebuild,v 1.3 2001/06/06 16:55:51 achim Exp $

P=
A=ircii-pana-1.0c18.tar.gz
S=${WORKDIR}/BitchX
DESCRIPTION="An IRC Client"
SRC_URI="ftp://ftp.bitchx.com/pub/BitchX/source/${A}"
HOMEPAGE="http://www.bitchx.com/"

DEPEND="virtual/glibc
	>=sys-libs/ncurses-5.1
        >=media-libs/audiofile-0.2.1
	ssl? ( >=dev-libs/openssl-0.9.6 )
	gnome? ( >=gnome-base/gnome-libs-1.2.4 )
        esd? ( >=media-sound/esound-0.2.22 )"

src_unpack() {
  unpack ${A}
  cd ${S}
  patch -p1 < ${FILESDIR}/${PF}-gentoo.diff
}

src_compile() {

    local myopts
    if [ -n "`use gnome`" ]
    then
	myopts="--with-gtk  --prefix=/opt/gnome"
    else
	myopts="--prefix=/usr"
    fi
    if [ -n "`use esd`" ]
    then
	myopts="$myopts --with-esd"
    fi
    if [ -n "`use ssl`" ]
    then
	myopts="$myopts --with-ssl"
    fi
    try ./configure ${myopts} --host=${CHOST}  --build=${CHOST}\
	--enable-cdrom --enable-ipv6 --with-plugins --enable-sound
    try make

}

src_install () {

    if [ -n "`use gnome`" ]
    then
      try make prefix=${D}/opt/gnome install
#      insinto /opt/gnome/share/gnome/apps/Internet
#      doins gtkBitchX.desktop
#      insinto /opt/gnome/share/pixmaps
#      doins BitchX.png
      cd ${D}/opt/gnome/bin
      rm gtkBitchX
      ln -sf gtkBichX-1.0c18 gtkBitchX
      chmod -x ${D}/opt/gnome/lib/bx/plugins/BitchX.hints
    else
      try make prefix=${D}/usr install
      cd ${D}/usr/bin
      rm gtkBitchX
      ln -sf BichX-1.0c18 BitchX
      chmod -x ${D}/usr/lib/bx/plugins/BitchX.hints
    fi

    #ln -sf ${D}/usr/bin/${P} BitchX


    cd ${S}
    dodoc Changelog README* IPv6-support
    cd doc
    insinto /usr/X11R6/include/bitmaps
    doins BitchX.xpm

    dodoc BitchX-* BitchX.bot *.doc BitchX.faq README.hooks 
    dodoc bugs *.txt functions ideas mode tcl-ideas watch
    dodoc *.tcl
    docinto html
    dodoc *.html

    docinto plugins
    dodoc plugins
    cd ../dll
    insinto /usr/lib/bx/wav
    doins wavplay/*.wav
    cp acro/README acro/README.acro
    dodoc acro/README.acro
    cp arcfour/README arcfour/README.arcfour
    dodoc arcfour/README.arcfour
    cp blowfish/README blowfish/README.blowfish
    dodoc blowfish/README.blowfish
    dodoc nap/README.nap
    cp qbx/README qbx/README.qbx
    dodoc qbx/README.qbx
}