# -*- 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
# $Id: Portfile 94544 2012-06-22 03:17:49Z rmstonecipher@macports.org $

PortSystem 1.0

name            easytag
version         2.1.7
set branch      [join [lrange [split ${version} .] 0 1] .]
categories      audio
platforms       darwin
maintainers     rmstonecipher openmaintainer
homepage        http://easytag.sf.net/
license         GPL-2+
description     Tool for editing tags of audio files

long_description    EasyTAG is an utility for viewing and editing tags \
                for MP3, MP2, FLAC, Ogg Vorbis, MusePack, Monkey's \
                audio files and MP4/AAC. \
                Its simple and nice GTK2+ interface makes tagging easier \
                under UNIX systems.

master_sites    sourceforge:project/easytag/easytag%20%28gtk%202%29/${branch}

checksums           rmd160  abe8df519ed41b9424080d73cb16c4a75dcb511f \
                    sha256  bfed34cbdce96aca299a0db2b531dbc66feb489b911a34f0a9c67f2eb6ee9301

use_bzip2        yes

depends_lib      port:gtk2 \
                 port:gettext \
                 port:libvorbis \
                 port:flac \
                 port:mp4v2 \
                 port:faad2 \
                 port:id3lib \
                 port:libid3tag \
                 port:speex \
                 port:wavpack

depends_build    port:hicolor-icon-theme \
                 port:pkgconfig

post-destroot {  xinstall -d ${destroot}${prefix}/share/doc/${name}
                 xinstall -m 644 -v -W ${worksrcpath} \
                     COPYING README THANKS TODO USERS-GUIDE \
                     ${destroot}${prefix}/share/doc/${name}
}

livecheck.regex         "${name}-(\\d+(?:\\.\\d+)*)${extract.suffix}"
