# Copyright 2018 Julian Ospald <hasufell@posteo.de>
# Distributed under the terms of the GNU General Public License v2

require github [ user=mariusae ]
require autotools [ supported_autoconf=[ 2.5 ] supported_automake=[ 1.15 ] ]

SUMMARY="Trickle is a userland bandwidth shaper for Unix-like systems"
DESCRIPTION="
Trickle is a voluntary, cooperative bandwidth shaper. trickle works entirely in userland and is cross platform compatible.
https://www.usenix.org/legacy/event/usenix05/tech/freenix/full_papers/eriksen/eriksen.pdf
"

LICENCES="BSD-3"
SLOT="0"
PLATFORMS="~amd64 ~x86"
MYOPTIONS=""

DEPENDENCIES="
    build+run:
        dev-libs/libevent
"

BUGS_TO="hasufell@posteo.de"

DEFAULT_SRC_COMPILE_PARAMS=( -j1 )

DEFAULT_SRC_PREPARE_PATCHES=(
    "${FILES}"/fix-install.patch
)