summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Väth <martin@mvath.de>2016-03-06 12:55:10 +0100
committerMartin Väth <martin@mvath.de>2016-03-06 12:55:10 +0100
commit57add74bd930d113ec36ff002bebbe4cf9a80f8a (patch)
tree7abce9c2b767cf5ebc44b4dfcbe84fecd534e4eb
parentsys-fs/squashmount: Version bump (diff)
downloadmv-57add74bd930d113ec36ff002bebbe4cf9a80f8a.tar.gz
mv-57add74bd930d113ec36ff002bebbe4cf9a80f8a.tar.bz2
mv-57add74bd930d113ec36ff002bebbe4cf9a80f8a.zip
games-action/trackballs: Add old gentoo ebuild, bumped to EAPI=6
-rw-r--r--games-action/trackballs/Manifest2
-rw-r--r--games-action/trackballs/files/trackballs-1.1.4-warning.patch45
-rw-r--r--games-action/trackballs/metadata.xml8
-rw-r--r--games-action/trackballs/trackballs-1.1.4-r1.ebuild79
-rw-r--r--licenses/FML-1155
5 files changed, 289 insertions, 0 deletions
diff --git a/games-action/trackballs/Manifest b/games-action/trackballs/Manifest
new file mode 100644
index 00000000..435b6b39
--- /dev/null
+++ b/games-action/trackballs/Manifest
@@ -0,0 +1,2 @@
+DIST trackballs-1.1.4.tar.gz 7229541 SHA256 459dbaec27354fb4afff3d1aa491bc21b4fc2c0769eae86a47aaeb545cb434a6
+DIST trackballs-music-1.4.tar.bz2 18825033 SHA256 bf9b793b6fab81e59fb9a373944a5724af279b0faebb2461bb98beb5aa466058
diff --git a/games-action/trackballs/files/trackballs-1.1.4-warning.patch b/games-action/trackballs/files/trackballs-1.1.4-warning.patch
new file mode 100644
index 00000000..c4e21582
--- /dev/null
+++ b/games-action/trackballs/files/trackballs-1.1.4-warning.patch
@@ -0,0 +1,45 @@
+diff -ru trackballs-1.1.4.orig/src/glHelp.cc trackballs-1.1.4/src/glHelp.cc
+--- trackballs-1.1.4.orig/src/glHelp.cc 2007-04-07 09:15:09.000000000 -0400
++++ trackballs-1.1.4/src/glHelp.cc 2011-04-12 12:04:01.142847026 -0400
+@@ -741,29 +741,6 @@
+ }
+ }
+
+-/* C <- A(B) */
+-void useMatrix(Matrix4d A,const double B[3],double C[3]) {
+- int i,k;
+- for(i=0;i<3;i++) {
+- C[i] = A[i][3];
+- for(k=0;k<3;k++)
+- C[i] += A[i][k] * B[k];
+- }
+- double h=A[3][3];
+- for(k=0;k<3;k++) h+=A[3][k];
+- for(k=0;k<3;k++) C[k] /= h;
+-}
+-
+-/* C <- A(B) */
+-void useMatrix(Matrix3d A,const double B[3],double C[3]) {
+- int i,k;
+- for(i=0;i<3;i++) {
+- C[i] = A[i][3];
+- for(k=0;k<3;k++)
+- C[i] += A[i][k] * B[k];
+- }
+-}
+-
+ /* C <- A */
+ void assign(const Matrix4d A,Matrix4d C) {
+ int i,j;
+diff -ru trackballs-1.1.4.orig/src/glHelp.h trackballs-1.1.4/src/glHelp.h
+--- trackballs-1.1.4.orig/src/glHelp.h 2006-08-05 11:22:32.000000000 -0400
++++ trackballs-1.1.4/src/glHelp.h 2011-04-12 12:04:16.689745593 -0400
+@@ -57,8 +57,6 @@
+ void zero(double[3]);
+
+ void debugMatrix(Matrix4d);
+-void useMatrix(Matrix4d,const double[3],double[3]);
+-void useMatrix(Matrix3d,const double[3],double[3]);
+ void identityMatrix(Matrix4d);
+ void assign(const Matrix4d,Matrix4d);
+ void matrixMult(Matrix4d,Matrix4d,Matrix4d);
diff --git a/games-action/trackballs/metadata.xml b/games-action/trackballs/metadata.xml
new file mode 100644
index 00000000..b919c846
--- /dev/null
+++ b/games-action/trackballs/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>martin@mvath.de</email>
+ <name>Martin Väth</name>
+ </maintainer>
+</pkgmetadata>
diff --git a/games-action/trackballs/trackballs-1.1.4-r1.ebuild b/games-action/trackballs/trackballs-1.1.4-r1.ebuild
new file mode 100644
index 00000000..b1acf6f0
--- /dev/null
+++ b/games-action/trackballs/trackballs-1.1.4-r1.ebuild
@@ -0,0 +1,79 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=6
+inherit eutils user
+RESTRICT="mirror"
+
+DESCRIPTION="simple game similar to the classical game Marble Madness"
+HOMEPAGE="http://trackballs.sourceforge.net/"
+SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz
+ mirror://sourceforge/${PN}/${PN}-music-1.4.tar.bz2"
+
+LICENSE="GPL-2 FML-1"
+SLOT="0"
+KEYWORDS="amd64 ~ppc x86"
+IUSE="nls"
+
+RDEPEND="virtual/opengl
+ virtual/glu
+ media-libs/libsdl[sound,joystick,video]
+ >=dev-scheme/guile-1.8:12[deprecated]
+ media-libs/sdl-mixer
+ media-libs/sdl-image
+ media-libs/sdl-ttf
+ nls? ( virtual/libintl )"
+DEPEND="${RDEPEND}
+ nls? ( sys-devel/gettext )"
+
+pkg_setup(){
+ enewgroup gamestat 36
+}
+
+src_prepare() {
+ sed -i \
+ -e 's/icons //' \
+ -e 's/games/gamestat/' \
+ share/Makefile.in \
+ || die
+ sed -i \
+ -e '/^localedir/s:=.*:=/usr/share/locale:' \
+ src/Makefile.in \
+ po/Makefile.in.in \
+ || die
+ # Fix _FORTIFY_SOURCE buffer overflow due to wrong sizeof
+ sed -i \
+ -e 's/\(snprintf(\(name\),sizeof\)(str)/\1(\2)/' \
+ src/enterHighScoreMode.cc || die
+ # Fix -Wformat-security warning due to non-literal with no format arguments
+ sed -i \
+ -e 's/\(snprintf(levelname,sizeof(levelname),\)\(name)\)/\1 "%s", \2/' \
+ -e 's/\(snprintf(Settings::settings->specialLevel,sizeof(Settings::settings->specialLevel),\)\(levelname)\)/\1 "%s", \2/' \
+ src/editMode.cc || die
+ sed -i \
+ -e 's/\(snprintf(\(textureName\),\)63\(,textureNames\[i\])\)/\1 sizeof(\2), "%s"\3/' \
+ src/map.cc || die
+ eapply "${FILESDIR}"/${P}-warning.patch
+ eapply_user
+}
+
+src_configure() {
+ econf \
+ --datadir=/usr/share/games \
+ --datarootdir=/usr/share \
+ --disable-dependency-tracking \
+ --with-highscores=/var/games/${PN}.score \
+ $(use_enable nls)
+}
+
+src_install() {
+ make DESTDIR="${D}" install
+ insinto /usr/share/games/${PN}/music
+ doins "${WORKDIR}"/trackballs-music/*.ogg
+ newicon share/icons/${PN}-64x64.png ${PN}.png
+ make_desktop_entry ${PN} Trackballs
+ dodoc AUTHORS ChangeLog FAQ NEWS README TODO
+ fowners root:gamestat /usr/bin/${PN}
+ fperms 2755 /usr/bin/${PN}
+}
diff --git a/licenses/FML-1 b/licenses/FML-1
new file mode 100644
index 00000000..9384d359
--- /dev/null
+++ b/licenses/FML-1
@@ -0,0 +1,155 @@
+ ETHYMONICS FREE MUSIC LICENSE
+
+ Version 1, August 2000
+
+ Copyright (C) 2000, Ethymonics Limited
+
+ Everyone is permitted to copy and distribute verbatim copies of this
+ license document, but changing it is not allowed.
+
+ Preamble
+
+ The licenses for most musical works are designed to take away your
+ freedom to share the music. By contrast, this Free Music License is
+ intended to guarantee your freedom to make copies of a piece of music,
+ and charge for this service if you wish. Recipients of those copies
+ have the same freedom. The word "Free" in "Free Music License" means
+ the freedom to make copies. It does not mean that those copies cannot
+ then be sold.
+
+ This license is designed to protect and pass on the right to make
+ copies to whoever receives a copy. This encourages wide distribution on
+ the artist's behalf. You can apply this license to your own music too.
+
+ To protect the right to copy the music, it is necessary to pass on
+ certain requirements that must be followed when the music is copied or
+ distributed. For example, if you distribute a piece of music subject to
+ this license, even if this is done for a fee, you must give the
+ recipients all the rights that you have. You must show them these terms
+ so that they know their rights.
+
+ The freedom to copy is protected by two things: (1) Copyright of the
+ music, and (2) This license that provides legal permission to copy and
+ distribute the music.
+
+ The precise terms and conditions for copying, distribution and
+ performance follow.
+
+ FREE MUSIC LICENSE
+
+ TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND PERFORMANCE
+
+ 1. This License applies to any musical work or other type of work which
+ has a notice placed by the copyright holder saying that it may be
+ distributed under the terms of this Free Music License. The "Music",
+ below, refers to any such music or work, whether in a recording,
+ performance or other form of musical representation, or any derivative
+ work under copyright law: that is to say, a work, in any medium,
+ containing the Music or a portion of it, either unaltered, modified and
+ or re-performed.
+
+ You may play or perform the Music publicly, for example in a broadcast,
+ provided that you make available to listeners the title of the work and
+ the name of the Artist. A recording made as a result of the Music being
+ played or performed is covered by this License when its contents
+ constitute a work based on the Music. If a listener wishes to make
+ copies of such a recording, the terms and conditions of this License
+ must be made available to them, along with any other information
+ required to make and distribute copies according to the terms and
+ conditions of this License.
+
+ 2. You may copy and distribute copies of the Music as you receive it,
+ in any medium, provided that you:
+
+ (a) conspicuously and appropriately publish on each copy an appropriate
+ copyright notice;
+
+ (b) keep intact all the notices that refer to this License;
+
+ (c) supply, with each copy of the Music, all significant information
+ about the Music, including the title of the work, the name of the
+ artist, and the names and roles of all credited personnel;
+
+ (d) supply, to each recipient of the Music, along with the Music,
+ either a copy of this License or a clearly visible URL that lets the
+ recipient know where to find a copy of this License on the Internet.
+
+ If the information required by (a) to (d) above is not available, for
+ example when the Music has been received by making a recording of a
+ performance, then this information must be obtained independently and
+ no copies can be made or distributed without this information being
+ included with each copy of the Music.
+
+ You may, at your option, charge a fee for the act of supplying a copy
+ of the Music.
+
+ 3. You may not copy, distribute, perform or sub-license the Music
+ except as expressly provided under this License. Any attempt to
+ otherwise do so is void, and will automatically terminate your rights
+ under this License. However, parties who have received copies, or
+ rights, from you under this License will not have their Licenses
+ terminated as long as such parties remain in full compliance.
+
+ 4. You are not required to accept this License, since you have not
+ signed it. However, nothing else grants you permission to copy,
+ distribute, play or perform the Music or any of its derivative works.
+ Therefore, by copying, distributing, playing or performing the Music,
+ or any of its derivative works, you indicate your acceptance of this
+ License to do so, and all of its terms and conditions.
+
+ 5. Each time you redistribute the Music the recipient automatically
+ receives a license from the original licensor to copy, distribute, play
+ and or perform the Music subject to the terms and conditions of this
+ License. You may not impose any further restrictions on the recipient's
+ exercise of the rights granted herein. You are not responsible for
+ enforcing compliance by third parties to this License.
+
+ 6. If, as a consequence of a court judgment or allegation of copyright
+ infringement or for any reason (not limited to copyright issues),
+ conditions are imposed on you (whether by court order, agreement or
+ otherwise) that contradict the conditions of this License, they do not
+ excuse you from the conditions of this License. If you cannot satisfy
+ simultaneously your obligations under this License and any other
+ pertinent obligations, then your rights under this License are
+ terminated. For example, if an existing agreement would not permit
+ royalty-free redistribution of the Music by all those who receive
+ copies directly or indirectly through you, then the only way to satisfy
+ both it and this License would be to refrain entirely from
+ redistributing the Music.
+
+ If any portion of this section is held invalid or unenforceable under
+ any particular circumstance, the balance of the section is intended to
+ apply and the section as a whole is intended to apply in other
+ circumstances.
+
+ It is not the purpose of this section to induce you to infringe any
+ copyright or other property right claims or to contest validity of any
+ such claims; this section has the sole purpose of protecting the
+ integrity of a music distribution system, which is implemented by
+ copyright and license practices.
+
+ 7. If an activity permitted by this License is restricted in certain
+ countries either for copyright or other reasons, the original copyright
+ holder who places the Music under this License may add an explicit
+ geographical distribution limitation excluding those countries, so that
+ distribution is permitted only in or among countries not thus excluded.
+ In such cases, this License incorporates the limitation as if written
+ in the body of this License.
+
+ 8. Ethymonics may publish revised and or new versions of the Free Music
+ License from time to time. Such new versions will be similar in spirit
+ to the present version, but may differ in detail to address new
+ problems as they arise.
+
+ Each License is given a distinguishing version number. If the Music
+ specifies a version number of this License which applies to it, and
+ "any later version", you have the option of following the terms and
+ conditions either of that version or any later version published by
+ Ethymonics. If the Music does not specify a version number of this
+ License, you may choose any version ever published by Ethymonics.
+
+ 9. If you wish to incorporate parts of the Music into another work
+ whose distribution conditions are different, write to the composer to
+ ask for permission.
+
+ END OF FREE MUSIC LICENSE