LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 889|回复: 5

deadbeef-0.4.3.ebuild

[复制链接]
发表于 2010-11-13 15:40:13 | 显示全部楼层 |阅读模式
提供ubuntu社区acer4740的gbk patch,我只是打包党..
将patch解压到本地overlay中的deadbeef/files目录下
ebuild

  1. # Copyright 1999-2010 Gentoo Foundation
  2. # Distributed under the terms of the GNU General Public License v2
  3. # $Header: $

  4. EAPI="3"

  5. inherit fdo-mime eutils

  6. MY_P="${P/_rc/-rc}"

  7. DESCRIPTION="foobar2000-like music player."
  8. HOMEPAGE="http://deadbeef.sourceforge.net/"
  9. SRC_URI="mirror://sourceforge/${PN}/${MY_P}.tar.bz2"
  10. LICENSE="LGPL-2.1 MIT" # TODO incomplete!

  11. # License details:
  12. # ./md5/ - MIT
  13. # TODO

  14. SLOT="0"
  15. KEYWORDS="~x86 ~amd64"
  16. IUSE="aac adplug alsa audiooverload cdda cover curl dbus dts
  17.         dumb ffap ffmpeg flac gme gtk +hotkeys lastfm midi mms mp3
  18.         musepack nullout oss pulseaudio shellexec shorten sid
  19.         sndfile +supereq tta vorbis vtx wavpack"

  20. RDEPEND="
  21.         media-libs/libsamplerate
  22.         alsa? ( media-libs/alsa-lib )
  23.         cover? ( net-misc/curl )
  24.         cdda? ( dev-libs/libcdio media-libs/libcddb )
  25.         curl? ( net-misc/curl )
  26.         dbus? ( sys-apps/dbus )
  27.         ffmpeg? ( media-video/ffmpeg )
  28.         flac? ( media-libs/flac )
  29.         gtk? ( x11-libs/gtk+:2 )
  30.         lastfm? ( net-misc/curl )
  31.         mms? ( media-libs/libmms )
  32.         mp3? ( media-libs/libmad )
  33.         pulseaudio? ( media-sound/pulseaudio )
  34.         sndfile? ( media-libs/libsndfile )
  35.         wavpack? ( media-sound/wavpack )
  36. "
  37. DEPEND="${RDEPEND}"

  38. S=${WORKDIR}/${MY_P}

  39. src_prepare() {
  40.         cd "${S}"
  41.         epatch "${FILESDIR}"/junklib.patch
  42.         # Removing bundle dependencies
  43.         :
  44.         # TODO:
  45.         # plugins/aac: aac? ( media-libs/faad2 )
  46.         # plugins/adplug: adplug? ( media-libs/adplug )
  47.         # plugins/ao
  48.         # plugins/dca: dts? ( media-libs/libdca )
  49.         # plugins/dump
  50.         # plugins/gme
  51.         # plugins/musepack: musepack? ( media-sound/musepack-tools )
  52.         # plugins/shn: shorten? ( media-sound/shorten )
  53.         # plugins/sid? ( media-libs/libsidplay )
  54.         # plugins/supereq
  55.         # plugins/tta
  56.         # plugins/vorbis: vorbis? ( media-libs/libvorbis )
  57.         # plugins/vtx
  58.         # plugins/wildmidi: midi? ( media-sound/wildmidi )
  59. }

  60. src_configure() {
  61.         my_config="
  62.                 --disable-dependency-tracking \
  63.                 $(use_enable aac) \
  64.                 $(use_enable adplug) \
  65.                 $(use_enable alsa) \
  66.                 $(use_enable audiooverload ao) \
  67.                 $(use_enable cdda) \
  68.                 $(use_enable dbus notify) \
  69.                 $(use_enable dts dca) \
  70.                 $(use_enable dumb) \
  71.                 $(use_enable ffap) \
  72.                 $(use_enable ffmpeg) \
  73.                 $(use_enable flac) \
  74.                 $(use_enable gme) \
  75.                 $(use_enable gtk gtkui) \
  76.                 --disable-gtk3 \
  77.                 $(use_enable hotkeys) \
  78.                 $(use_enable lastfm lfm) \
  79.                 $(use_enable mp3 mad) \
  80.                 $(use_enable midi wildmidi) \
  81.                 $(use_enable musepack) \
  82.                 $(use_enable nullout) \
  83.                 $(use_enable oss) \
  84.                 $(use_enable pulseaudio pulse) \
  85.                 $(use_enable shellexec)
  86.                 $(use_enable shorten shn) \
  87.                 $(use_enable sid) \
  88.                 $(use_enable sndfile) \
  89.                 $(use_enable supereq) \
  90.                 $(use_enable tta) \
  91.                 $(use_enable vorbis) \
  92.                 $(use_enable vtx) \
  93.                 $(use_enable wavpack) \
  94.         "

  95.         if use cover ; then
  96.                 # artwork need vfs-curl plugin, we force it
  97.                 my_config="${my_config} \
  98.                         --enable-vfs-curl \
  99.                         --enable-artwork"
  100.         else
  101.                 my_config="${my_config} \
  102.                         $(use_enable curl vfs-curl) \
  103.                         --disable-artwork"
  104.         fi

  105.         econf ${my_config} || die
  106. }

  107. src_install() {
  108.         make DESTDIR="${D}" install || die
  109. }
复制代码

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有帐号?注册

x
发表于 2010-11-19 21:38:30 | 显示全部楼层
多谢分享,已经用上了。
BTW,最新版本是0.4.4,:-)
回复 支持 反对

使用道具 举报

发表于 2010-11-19 23:33:24 | 显示全部楼层
早先看到,也不知是什么,原来是个播放器~ 很好用,谢谢。
回复 支持 反对

使用道具 举报

发表于 2010-11-20 01:00:08 | 显示全部楼层
支持CUE文件吗?中文显示有没有问题?
回复 支持 反对

使用道具 举报

发表于 2010-11-20 10:04:45 | 显示全部楼层
回复 支持 反对

使用道具 举报

 楼主| 发表于 2011-2-8 10:33:08 | 显示全部楼层
Post by Hosanna;2120444
已经有Ebuild了
http://bugs.gentoo.org/show_bug.cgi?id=301349

不一样,这里这个的id3v2可以显示gbk编码....包括cue
https://github.com/Havanna/overl ... adbeef-0.4.4.ebuild
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表