aboutsummaryrefslogtreecommitdiff
blob: 7e72b5414e9a424ca4118ab47cbf0037f43fc4c2 (plain)
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
# Copyright 1999-2023 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=8

DESCRIPTION="A tool to check the validity of Second Life LSL scripts"
HOMEPAGE="http://w-hat.com/#lslint"
SRC_URI="https://github.com/Makopo/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"

LICENSE=""
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE=""

RDEPEND="
"
DEPEND="
	${RDEPEND}
"

DOCS="README.md"

src_prepare() {
	sed -i -e 's:CXX = g++ -g -Wall -std=c++98 -pedantic-errors -fno-omit-frame-pointer -ffloat-store:MYCXXFLAGS = -Wall -std=c++98 -pedantic-errors:' Makefile
	sed -i -e 's:CXX += -arch i386 -arch ppc::' Makefile
	sed -i -e 's:CXX += -arch i386::' Makefile
	sed -i -e 's:g++:$(CXX):' Makefile
	sed -i -e 's:$(CXX) $(CXXFLAGS):$(CXX) $(CXXFLAGS) $(MYCXXFLAGS):' Makefile

	sed -i -e 's:$(LD) $(LDFLAGS):$(CXX) $(LDFLAGS):' Makefile

	eapply_user
}

src_install() {
	dobin ${PN}
	einstalldocs
}