source: trunk/dports/irc/eggdrop/Portfile

Last change on this file was 122586, checked in by khindenburg@…, 3 years ago

eggdrop: fix license and apply patches to all versions of OS

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 1.8 KB
Line 
1# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
2# $Id: Portfile 122586 2014-07-24 12:09:08Z ryandesign@macports.org $
3
4PortSystem              1.0
5
6name                    eggdrop
7version                 1.6.21
8license                 GPL-2+
9set branch              [join [lrange [split ${version} .] 0 1] .]
10categories              irc
11maintainers             mac.com:dre
12description             Eggdrop is the world's most popular Internet Relay Chat (IRC) bot.
13long_description        ${description}
14homepage                http://www.eggheads.org
15platforms               darwin
16master_sites            ftp://ftp.eggheads.org/pub/eggdrop/source/${branch}/ freebsd
17distname                ${name}${version}
18
19checksums               rmd160  1006dfd6a6e735500c2b484eb3061f1d2dfd20f8 \
20                        sha256  75bd5573a609eac3940c0b6ca8251c3f38ea5d54b520e1cad93c650b4bc21754
21
22use_bzip2               yes
23
24patchfiles              patch-Makefile.in-LDFLAGS.diff
25
26post-configure          { system "cd ${worksrcpath} && make config" }
27destroot.destdir        DEST=${destroot}${prefix}/share/eggdrop
28
29post-destroot {
30    delete ${destroot}${prefix}/share/eggdrop/eggdrop
31    ln -s ../share/eggdrop/eggdrop-${version} ${destroot}${prefix}/bin/eggdrop
32    move ${destroot}${prefix}/share/eggdrop/eggdrop.conf ${destroot}${prefix}/share/eggdrop/eggdrop.conf.sample
33    move ${destroot}${prefix}/share/eggdrop/doc/man1/eggdrop.1 ${destroot}${prefix}/share/man/man1
34}
35
36platform darwin 8 {
37        configure.cflags-append "-DBIND_8_COMPAT"
38}
39
40if {${os.platform} eq "darwin" && ${os.major} >= 10} {
41    patchfiles-append patch-Makefile.in.diff
42    patchfiles-append patch-src-tclhash.h.diff
43    patchfiles-append patch-src-proto.h.diff
44    patchfiles-append patch-src-match.c.diff
45}
Note: See TracBrowser for help on using the repository browser.