summaryrefslogtreecommitdiffstats
path: root/audio/rubyripper/Makefile
blob: 810ab19f10f82f66b1e435edd3188faddf2b5391 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
# Created by: Alexey Dokuchaev <danfe@FreeBSD.org>
# $FreeBSD$

PORTNAME=	rubyripper
DISTVERSION=	0.6.2
PORTREVISION=	1
CATEGORIES=	audio sysutils ruby
MASTER_SITES=	GOOGLE_CODE

MAINTAINER=	multimedia@FreeBSD.org
COMMENT=	Digital audio CD extraction tool for accurate ripping

LICENSE=	GPLv3

# cdparanoia is not really required for the build, but the port would not
# configure without it (ideally, configure script should be fixed instead
# of forcing this superfluous build dependency)
BUILD_DEPENDS=	rxgettext:${PORTSDIR}/devel/rubygem-gettext \
		cdparanoia:${PORTSDIR}/audio/cdparanoia
RUN_DEPENDS:=	${BUILD_DEPENDS} \
		${RUBY_SITEARCHLIBDIR}/gtk2.so:${PORTSDIR}/x11-toolkits/ruby-gtk2 \
		cdrdao:${PORTSDIR}/sysutils/cdrdao \
		cd-discid:${PORTSDIR}/audio/cd-discid

USE_BZIP2=	yes
NO_STAGE=	yes
USES=		gettext
USE_RUBY=	yes
INSTALLS_ICONS=	yes

DESKTOP_ENTRIES="Rubyripper" "Secure Audio Disc Ripper" \
		"${PORTNAME}" "rrip_gtk2" "Audio;AudioVideo;" false

post-patch:
# fix an apparent typo
	@${REINPLACE_CMD} -e 's,cdparanioa,cdparanoia,' \
		${WRKSRC}/locale/po/bg/rubyripper.po \
		${WRKSRC}/locale/po/ru/rubyripper.po

do-build:
	cd ${WRKSRC} && ${RUBY} configure --update-lang

do-install:
	${INSTALL_DATA} ${WRKSRC}/rr_lib.rb ${RUBY_SITELIBDIR}
.for frontend in cli gtk2
	${INSTALL_SCRIPT} ${WRKSRC}/${PORTNAME}_${frontend}.rb \
		${PREFIX}/bin/rrip_${frontend}
.endfor
	${INSTALL_DATA} ${WRKSRC}/${PORTNAME}.png \
		${PREFIX}/share/icons/hicolor/128x128/apps
	cd ${WRKSRC} && ${FIND} . -type f -name \*.mo | ${XARGS} ${TAR} \
		cf - | ${TAR} xf - -C ${PREFIX}/share

.include <bsd.port.mk>
OpenPOWER on IntegriCloud