Import go-mp3-0.3.1 to wip

This commit is contained in:
K.I.A.Derouiche 2021-01-06 12:09:00 +01:00
parent 8b2d8cd766
commit 92588c6d6e
6 changed files with 75 additions and 1 deletions

View File

@ -1181,7 +1181,7 @@ SUBDIR+= go-collectd
SUBDIR+= go-color
SUBDIR+= go-cyclo
SUBDIR+= go-dotenv
SUBDIR+= go-flac
SUBDIR+= go-flac-eaburns
SUBDIR+= go-flags
SUBDIR+= go-fsnotify
SUBDIR+= go-ghodss-yaml
@ -1198,6 +1198,7 @@ SUBDIR+= go-kong
SUBDIR+= go-kr-text
SUBDIR+= go-log
SUBDIR+= go-madon
SUBDIR+= go-mp3
SUBDIR+= go-notify
SUBDIR+= go-param
SUBDIR+= go-pass

1
go-mp3/DESCR Normal file
View File

@ -0,0 +1 @@
An MP3 decoder in pure Go based on PDMP3.

18
go-mp3/Makefile Normal file
View File

@ -0,0 +1,18 @@
# $NetBSD$
DISTNAME= go-mp3-0.3.1
GITHUB_PROJECT= go-mp3
GITHUB_TAG= v${PKGVERSION_NOREV}
CATEGORIES= audio
MASTER_SITES= ${MASTER_SITE_GITHUB:=hajimehoshi/}
MAINTAINER= kamelderouiche@yahoo.com
HOMEPAGE= https://github.com/hajimehoshi/go-mp3/
COMMENT= MP3 decoder in pure Go
LICENSE= apache-2.0
GO_SRCPATH= github.com/hajimehoshi/go-mp3
GO_DIST_BASE= ${GITHUB_PROJECT}-${PKGVERSION_NOREV}
.include "../../lang/go/go-package.mk"
.include "../../mk/bsd.pkg.mk"

33
go-mp3/PLIST Normal file
View File

@ -0,0 +1,33 @@
@comment $NetBSD$
gopkg/pkg/${GO_PLATFORM}/github.com/hajimehoshi/go-mp3.a
gopkg/pkg/${GO_PLATFORM}/github.com/hajimehoshi/go-mp3/internal/bits.a
gopkg/pkg/${GO_PLATFORM}/github.com/hajimehoshi/go-mp3/internal/consts.a
gopkg/pkg/${GO_PLATFORM}/github.com/hajimehoshi/go-mp3/internal/frame.a
gopkg/pkg/${GO_PLATFORM}/github.com/hajimehoshi/go-mp3/internal/frameheader.a
gopkg/pkg/${GO_PLATFORM}/github.com/hajimehoshi/go-mp3/internal/huffman.a
gopkg/pkg/${GO_PLATFORM}/github.com/hajimehoshi/go-mp3/internal/imdct.a
gopkg/pkg/${GO_PLATFORM}/github.com/hajimehoshi/go-mp3/internal/maindata.a
gopkg/pkg/${GO_PLATFORM}/github.com/hajimehoshi/go-mp3/internal/sideinfo.a
gopkg/src/github.com/hajimehoshi/go-mp3/AUTHORS
gopkg/src/github.com/hajimehoshi/go-mp3/LICENSE
gopkg/src/github.com/hajimehoshi/go-mp3/README.md
gopkg/src/github.com/hajimehoshi/go-mp3/bench_test.go
gopkg/src/github.com/hajimehoshi/go-mp3/decode.go
gopkg/src/github.com/hajimehoshi/go-mp3/example/classic.mp3
gopkg/src/github.com/hajimehoshi/go-mp3/example/license.md
gopkg/src/github.com/hajimehoshi/go-mp3/example/main.go
gopkg/src/github.com/hajimehoshi/go-mp3/example/mpeg2.mp3
gopkg/src/github.com/hajimehoshi/go-mp3/fuzzing_test.go
gopkg/src/github.com/hajimehoshi/go-mp3/go.mod
gopkg/src/github.com/hajimehoshi/go-mp3/go.sum
gopkg/src/github.com/hajimehoshi/go-mp3/internal/bits/bits.go
gopkg/src/github.com/hajimehoshi/go-mp3/internal/bits/bits_test.go
gopkg/src/github.com/hajimehoshi/go-mp3/internal/consts/consts.go
gopkg/src/github.com/hajimehoshi/go-mp3/internal/frame/frame.go
gopkg/src/github.com/hajimehoshi/go-mp3/internal/frameheader/frameheader.go
gopkg/src/github.com/hajimehoshi/go-mp3/internal/huffman/huffman.go
gopkg/src/github.com/hajimehoshi/go-mp3/internal/imdct/imdct.go
gopkg/src/github.com/hajimehoshi/go-mp3/internal/maindata/huffman.go
gopkg/src/github.com/hajimehoshi/go-mp3/internal/maindata/maindata.go
gopkg/src/github.com/hajimehoshi/go-mp3/internal/sideinfo/sideinfo.go
gopkg/src/github.com/hajimehoshi/go-mp3/source.go

15
go-mp3/buildlink3.mk Normal file
View File

@ -0,0 +1,15 @@
# $NetBSD$
BUILDLINK_TREE+= go-mp3
.if !defined(GO_MP3_BUILDLINK3_MK)
GO_MP3_BUILDLINK3_MK:=
BUILDLINK_CONTENTS_FILTER.go-mp3= ${EGREP} gopkg/
BUILDLINK_DEPMETHOD.go-mp3?= build
BUILDLINK_API_DEPENDS.go-mp3+= go-mp3>=0.3.1
BUILDLINK_PKGSRCDIR.go-mp3?= ../../wip/go-mp3
.endif # GO_MP3_BUILDLINK3_MK
BUILDLINK_TREE+= -go-mp3

6
go-mp3/distinfo Normal file
View File

@ -0,0 +1,6 @@
$NetBSD$
SHA1 (go-mp3-0.3.1.tar.gz) = cd95f6863bc6835cc1ca2a76c1c6535050c0338b
RMD160 (go-mp3-0.3.1.tar.gz) = 10cd0bcd8b6e26cef16dfe4c0237b4a0c9c3709a
SHA512 (go-mp3-0.3.1.tar.gz) = c486b555687e268304ba4dd66ed619ad4472dd3ab6509541776776728efbb9efac1a77ea7038fadbe1d4a0b3adff4a26b41a7c9553182cdd7b1fb986ee220862
Size (go-mp3-0.3.1.tar.gz) = 11655539 bytes