blob: 48ccc5e569d61ecd01e018729a267dde1b5c44c3 (
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
|
# Copyright 2013-2022 Lawrence Livermore National Security, LLC and other
# Spack Project Developers. See the top-level COPYRIGHT file for details.
#
# SPDX-License-Identifier: (Apache-2.0 OR MIT)
import os
from spack.package import *
class Libid3tag(AutotoolsPackage):
"""library for id3 tagging"""
homepage = "https://www.underbit.com/products/mad/"
url = "ftp://ftp.mars.org/pub/mpeg/libid3tag-0.15.1b.tar.gz"
maintainers = ['TheQueasle']
version('0.15.1b', '63da4f6e7997278f8a3fef4c6a372d342f705051d1eeb6a46a86b03610e26151')
depends_on('zlib')
depends_on('gperf')
# source: https://git.archlinux.org/svntogit/packages.git/tree/trunk/10_utf16.diff?h=packages/libid3tag
patch('10_utf16.diff')
# source: https://git.archlinux.org/svntogit/packages.git/tree/trunk/11_unknown_encoding.diff?h=packages/libid3tag
patch('11_unknown_encoding.dif')
# source: https://git.archlinux.org/svntogit/packages.git/tree/trunk/CVE-2008-2109.patch?h=packages/libid3tag
patch('CVE-2008-2109.patch', level=0)
# source: https://git.archlinux.org/svntogit/packages.git/tree/trunk/libid3tag-gperf.patch?h=packages/libid3tag
patch('libid3tag-gperf.patch', when="^gperf@3.1:")
@run_before('configure')
def preclean(self):
"""
Remove compat.c and frametype.c in order to regenerate from gperf
sources
"""
os.remove('compat.c')
os.remove('frametype.c')
|