Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

net-p2p/litecoind: add 0.18.1 #21302

Closed
wants to merge 1 commit into from

Conversation

SoapGentoo
Copy link
Member

@SoapGentoo
Copy link
Member Author

SoapGentoo commented Jun 18, 2021

--- litecoind-0.10.4.0-r2.ebuild
+++ litecoind-0.18.1.ebuild
@@ -19,63 +19,46 @@
 LICENSE="MIT ISC GPL-2"
 SLOT="0"
 KEYWORDS="~amd64 ~x86"
-IUSE="logrotate upnp +wallet"
+IUSE="cpu_flags_x86_sse2 upnp +wallet"
 
 RDEPEND="
 	acct-group/litecoin
 	acct-user/litecoin
 	dev-libs/boost:=[threads(+)]
 	dev-libs/leveldb:=
-	dev-libs/openssl:0[-bindist(-)]
-	sys-libs/db:$(db_ver_to_slot "${DB_VER}")[cxx]
-	logrotate? ( app-admin/logrotate )
-	upnp? ( net-libs/miniupnpc )
-"
-DEPEND="
-	${RDEPEND}
-	>=app-shells/bash-4.1
-	sys-apps/sed
-"
-
-PATCHES=(
-	"${FILESDIR}"/0.9.0-sys_leveldb.patch
-	"${FILESDIR}"/litecoind-0.10.2.2-memenv_h.patch
-	"${FILESDIR}"/litecoind-0.10.2.2-fix-gnustack.patch
-	"${FILESDIR}"/${P}-gcc6.patch
-)
+	dev-libs/libevent:=[threads(+)]
+	dev-libs/openssl:=[-bindist(-)]
+	sys-libs/db:$(db_ver_to_slot ${DB_VER})[cxx]
+	upnp? ( net-libs/miniupnpc:= )"
+DEPEND="${RDEPEND}"
+
+PATCHES=( "${FILESDIR}"/${P}-system-leveldb.patch )
 
 src_prepare() {
 	default
-
+	rm -r src/leveldb || die
 	eautoreconf
-	rm -r src/leveldb
 }
 
 src_configure() {
 	# To avoid executable GNU stack.
 	append-ldflags -Wl,-z,noexecstack
 
-	local my_econf=
-	if use upnp; then
-		my_econf="${my_econf} --with-miniupnpc --enable-upnp-default"
-	else
-		my_econf="${my_econf} --without-miniupnpc --disable-upnp-default"
-	fi
-
 	local myeconfargs=(
 		$(use_enable wallet)
+		$(use_with upnp miniupnpc)
+		$(use_enable upnp upnp-default)
+		$(use_enable cpu_flags_x86_sse2 sse2)
 		--disable-ccache
 		--disable-static
+		# tests are broken and segfault
 		--disable-tests
 		--with-system-leveldb
-		--with-system-libsecp256k1
 		--without-libs
 		--with-daemon
 		--without-gui
 		--without-qrencode
-		${my_econf}
 	)
-
 	econf "${myeconfargs[@]}"
 }
 
@@ -83,13 +66,13 @@
 	default
 
 	insinto /etc/litecoin
-	doins "${FILESDIR}/litecoin.conf"
+	doins "${FILESDIR}"/litecoin.conf
 	fowners litecoin:litecoin /etc/litecoin/litecoin.conf
 	fperms 600 /etc/litecoin/litecoin.conf
 
-	newconfd "${FILESDIR}/litecoin.confd" ${PN}
-	newinitd "${FILESDIR}/litecoin.initd-r1" ${PN}
-	systemd_dounit "${FILESDIR}/litecoin.service"
+	newconfd "${FILESDIR}"/litecoin.confd ${PN}
+	newinitd "${FILESDIR}"/litecoin.initd-r1 ${PN}
+	systemd_dounit "${FILESDIR}"/litecoin.service
 
 	keepdir /var/lib/litecoin/.litecoin
 	fperms 700 /var/lib/litecoin
@@ -98,11 +81,7 @@
 	dosym /etc/litecoin/litecoin.conf /var/lib/litecoin/.litecoin/litecoin.conf
 
 	dodoc doc/README.md doc/release-notes.md
-	newman contrib/debian/manpages/bitcoind.1 litecoind.1
-	newman contrib/debian/manpages/bitcoin.conf.5 litecoin.conf.5
 
-	if use logrotate; then
-		insinto /etc/logrotate.d
-		newins "${FILESDIR}/litecoind.logrotate" litecoind
-	fi
+	insinto /etc/logrotate.d
+	newins "${FILESDIR}"/litecoind.logrotate litecoind
 }

net-p2p/litecoind/litecoind-0.18.1.ebuild Outdated Show resolved Hide resolved
net-p2p/litecoind/litecoind-0.18.1.ebuild Show resolved Hide resolved
net-p2p/litecoind/litecoind-0.18.1.ebuild Outdated Show resolved Hide resolved
net-p2p/litecoind/litecoind-0.18.1.ebuild Show resolved Hide resolved
@gentoo-repo-qa-bot
Copy link
Collaborator

Pull request CI report

Report generated at: 2021-06-18 10:19 UTC
Newest commit scanned: 3b32139
Status: ✅ good

There are existing issues already. Please look into the report to make sure none of them affect the packages in question:
https://qa-reports.gentoo.org/output/gentoo-ci/74d3ec7731/output.html

@gentoo-repo-qa-bot
Copy link
Collaborator

Pull request CI report

Report generated at: 2021-06-18 11:19 UTC
Newest commit scanned: fdf368d
Status: ✅ good

There are existing issues already. Please look into the report to make sure none of them affect the packages in question:
https://qa-reports.gentoo.org/output/gentoo-ci/1fd3c178bb/output.html

@gentoo-repo-qa-bot
Copy link
Collaborator

Pull request CI report

Report generated at: 2021-06-18 11:29 UTC
Newest commit scanned: fd77c59
Status: ✅ good

There are existing issues already. Please look into the report to make sure none of them affect the packages in question:
https://qa-reports.gentoo.org/output/gentoo-ci/921b34bd22/output.html

@SoapGentoo SoapGentoo deleted the litecoin-bump branch June 18, 2021 11:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants