#!/usr/bin/python
# -*- coding: utf-8 -*-
#
# Licensed under the GNU General Public License, version 3.
# See the file http://www.gnu.org/licenses/gpl.txt

from pisi.actionsapi import get
from pisi.actionsapi import pisitools
from pisi.actionsapi import perlmodules


def setup():
    perlmodules.configure()


def build():
    perlmodules.make()


def check():
    perlmodules.make("test")


def install():
    perlmodules.install()

    pisitools.remove("/usr/share/man/man3/HTTP::Request.3pm")
    pisitools.remove("/usr/share/man/man3/HTTP::Headers::Util.3pm")
    pisitools.remove("/usr/share/man/man3/HTTP::Headers::ETag.3pm")
    pisitools.remove("/usr/share/man/man3/HTTP::Config.3pm")
    pisitools.remove("/usr/share/man/man3/HTTP::Message.3pm")
    pisitools.remove("/usr/share/man/man3/HTTP::Headers.3pm")
    pisitools.remove("/usr/share/man/man3/HTTP::Status.3pm")
    pisitools.remove("/usr/share/man/man3/HTTP::Request::Common.3pm")
    pisitools.remove("/usr/share/man/man3/HTTP::Response.3pm")
    pisitools.remove("/usr/share/man/man3/HTTP::Headers::Auth.3pm")
