#!/bin/bash
#
# Copyright 2012 Eugene Wissner <belka.ew@gmail.com>
# Available under the terms of the GNU GPL.
#

NAME="ragel"
VERSION="6.7"
REVISION="2"

PKG_SOURCEURL='http://www.complang.org/${NAME}/${NAME}-${VERSION}.tar.gz'
PKG_NEEDSTATIC="configure: WARNING: unrecognized options: --disable-static"
PKG_SANIFYNOTOUCH="owwww nooooooo"

PKG_PATCH[0]="ragel-6.6-gcc47-lookup.patch"

. $DLG_ROOT/etc/config
. $DLG_ROOT/lib/dl-base

cflags
cxxflags
prepare

# JHBuild's patch
applypatch 0 1

analyzesource
configure
make
makeinstall install-strip
tidydocumentation
analyzebinaries
finalizepackage
packagize
cleanup
