logo

overlay

My own overlay for experimentations, use with caution, no support is provided git clone https://hacktivis.me/git/overlay.git
commit: ad1d416b7724535ec9d191e57c5151d83985e368
parent dfde79a2131d4d3012f2717810d5a184be395466
Author: Haelwenn (lanodan) Monnier <contact@hacktivis.me>
Date:   Tue, 10 Jan 2023 09:23:00 +0100

games-arcade/tinymania: treeclean

Diffstat:

Dgames-arcade/tinymania/files/tinymania-fix-Makefile.patch42------------------------------------------
Dgames-arcade/tinymania/metadata.xml8--------
Dgames-arcade/tinymania/tinymania-9999.ebuild29-----------------------------
3 files changed, 0 insertions(+), 79 deletions(-)

diff --git a/games-arcade/tinymania/files/tinymania-fix-Makefile.patch b/games-arcade/tinymania/files/tinymania-fix-Makefile.patch @@ -1,42 +0,0 @@ -diff --git a/Makefile b/Makefile -index 739c63f..500e8a0 100644 ---- a/Makefile -+++ b/Makefile -@@ -1,5 +1,6 @@ - # compiler --CC := g++ -+CXX ?= g++ -+PREFIX ?= /usr/local - - # OS and specific libs - OS := $(shell uname) -@@ -21,23 +23,24 @@ TARGET := tinymania - SRCEXT := cpp - SOURCES := $(shell find $(SRCDIR) -type f -name *.$(SRCEXT)) - OBJECTS := $(patsubst $(SRCDIR)/%,$(BUILDDIR)/%,$(SOURCES:.$(SRCEXT)=.o)) --CFLAGS := -g -std=c++17 -O3 -Wall -Wextra -pedantic -+CXXFLAGS ?= -g -O3 -Wall -Wextra -pedantic - INC := -I include - - #specify linked libraries - - $(TARGET): $(OBJECTS) - @echo " linking..." -- @echo " $(CC) $^ -o $(TARGET) $(LIB)"; $(CC) $^ -o $(TARGET) $(LIB) -+ $(CXX) $^ -o $(TARGET) $(LIB) - - $(BUILDDIR)/%.o: $(SRCDIR)/%.$(SRCEXT) - @echo " compiling..." - @mkdir -p $(BUILDDIR) -- @echo " $(CC) $(CFLAGS) $(INC) -c -o $@ $<"; $(CC) $(CFLAGS) $(INC) -c -o $@ $< -+ $(CXX) $(CXXFLAGS) -std=c++14 $(INC) -c -o $@ $< - - install: $(TARGET) -- cp tinymania /usr/bin/tinymania -+ mkdir -p $(DESTDIR)$(PREFIX)/bin -+ cp tinymania $(DESTDIR)$(PREFIX)/bin/tinymania - - clean: - @echo " cleaning ..." -- @echo " $(RM) -r $(BUILDDIR) $(TARGET)"; $(RM) -r $(BUILDDIR) $(TARGET) -+ $(RM) -r $(BUILDDIR) $(TARGET) diff --git a/games-arcade/tinymania/metadata.xml b/games-arcade/tinymania/metadata.xml @@ -1,8 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> -<pkgmetadata> - <maintainer type="person"> - <email>contact@hacktivis.me</email> - <name>Haelwenn (lanodan) Monnier</name> - </maintainer> -</pkgmetadata> diff --git a/games-arcade/tinymania/tinymania-9999.ebuild b/games-arcade/tinymania/tinymania-9999.ebuild @@ -1,29 +0,0 @@ -# Copyright 1999-2018 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 - -EAPI=6 - -inherit git-r3 eutils - -DESCRIPTION="A VSRG clone for playing .osu files." -HOMEPAGE="https://git.sakamoto.gq/eal/tinymania" - -EGIT_REPO_URI="https://git.sakamoto.gq/eal/tinymania.git" - -LICENSE="GPL-3" -SLOT="0" -KEYWORDS="" -IUSE="" - -DEPEND="media-libs/libsfml" -RDEPEND="${DEPEND}" - -src_prepare() { - default - - epatch "${FILESDIR}/tinymania-fix-Makefile.patch" -} - -src_install() { - emake install DESTDIR="${D}" PREFIX="/usr/games" -}