1 # Copyright 1999-2018 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
6 inherit toolchain-funcs
8 DESCRIPTION="Sets the region on DVD drives"
9 HOMEPAGE="http://linvdr.org/projects/regionset/"
10 SRC_URI="http://linvdr.org/download/${PN}/${P}.tar.gz"
14 KEYWORDS="amd64 ppc x86"
18 sed "/^\.IR/s@${PN}@${PF}@" -i ${PN}.8 || die
22 $(tc-getCC) ${CFLAGS} ${LDFLAGS} -o ${PN} ${PN}.c dvd_udf.c || die
28 dodoc debian/changelog README
32 ewarn "By default regionset uses /dev/dvd, specify a different device"
33 ewarn "as a command line argument if you need to. You need write access"
34 ewarn "to do this, preferably as root."
36 ewarn "Most drives can only have their region changed 4 or 5 times."
38 ewarn "When you use regionset, you MUST have a cd or dvd in the drive"
39 ewarn "otherwise nasty things will happen to your drive's firmware."