blob: 21d12cb279a1abbeecd3764bc5dc6c30f6d5e22e (
plain) (
blame)
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
55
56
57
58
59
|
# New ports collection makefile for: Rubyripper
# Date created: 6 Nov 2010
# Whom: Alexey Dokuchaev <danfe@FreeBSD.org>
#
# $FreeBSD$
#
PORTNAME= rubyripper
DISTVERSION= 0.6.0
PORTREVISION= 1
CATEGORIES= audio sysutils ruby
MASTER_SITES= GOOGLE_CODE
MAINTAINER= danfe@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= rgettext:${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
BROKEN= does not package
USE_BZIP2= yes
USE_GETTEXT= yes
USE_RUBY= yes
INSTALLS_ICONS= yes
DESKTOP_ENTRIES="Rubyripper" "Secure Audio Disc Ripper" \
"${PORTNAME}.png" "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>
|