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

eclass/sgml-catalog.eclass and app-text/docbook-dsssl-stylesheets: Bump to EAPI=6 #6238

Closed
wants to merge 2 commits into from

Conversation

waebbl
Copy link
Contributor

@waebbl waebbl commented Nov 19, 2017

Only inherit base if EAPI <= 5

Closes: https://bugs.gentoo.org/497052

Sorry, this PR got recreated, I noticed I initially did this PR on my master branch, when I wanted to prepare a PR for a different package and had to back in time and reapply this on the correct branch.

@gentoo-repo-qa-bot
Copy link
Collaborator

Pull Request assignment

Areas affected: eclasses
Packages affected: (none)

@gentoo/github

Bugs linked: 497052

@gentoo-repo-qa-bot gentoo-repo-qa-bot added need assignment It was impossible to assign the PR correctly. Please assign it manually. bug linked Bug/Closes found in footer, and cross-linked with the PR. labels Nov 19, 2017
@waebbl waebbl changed the title eclass/sgml-catalog.eclass: Update for EAPI=6 conformity eclass/sgml-catalog.eclass and app-text/docbook-dsssl-stylesheets: Bump to EAPI=6 Nov 19, 2017
@jonasstein jonasstein added the maintainer-needed There is at least one affected package with no maintainer. Review it if you can. label Nov 19, 2017
@waebbl
Copy link
Contributor Author

waebbl commented Nov 24, 2017

I would apply for proxy maintaining the docbook-dsssl-stylesheets. Depending on how the gentoo team is handling this, I also like to apply for the sgml-catalog.eclass as a proxy maintainer. It seems fairly easy to understand, just moderate bash used, no higher-level bashism and additionally quite short.

@gentoo-repo-qa-bot
Copy link
Collaborator

👍 All QA issues have been fixed!

@waebbl
Copy link
Contributor Author

waebbl commented Dec 4, 2017

@akhuettel ping on the two weeks old review request. If you find the time, I'd be happy if you can follow the request. Thanks!

@@ -8,7 +8,10 @@
# Author Matthew Turk <satai@gentoo.org>
# @BLURB: Functions for installing SGML catalogs

inherit base
case ${EAPI:-0} in
1|2|3|4|5) inherit base ;;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What about EAPI=0?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I thought EAPI=0 is only implicitly assumed whenever EAPI is missing. I can add it.
Does it need some special care,, I.e. base eclass was not present in EAPI=0 or something?

@waebbl waebbl force-pushed the eapibumps branch 2 times, most recently from 67434df to 122aa1c Compare December 18, 2017 19:59
@waebbl
Copy link
Contributor Author

waebbl commented Dec 18, 2017

Updated to include EAPI=0 in sgml-catalog.eclass


src_unpack() {
unpack ${A}
cd "${S}"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

cd "${S}" || die

src_unpack() {
unpack ${A}
cd "${S}"
cp "${FILESDIR}/${PN}-1.79.Makefile" Makefile
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

also || die missing

emake \
BINDIR="${ED}/usr/bin" \
DESTDIR="${ED}/usr/share/sgml/docbook/dsssl-stylesheets-${PV}" \
install || die
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

remove || die (internal Gentoo command)

dodir /usr/share/sgml/stylesheets/dsssl/

if [ -d "${EPREFIX}"/usr/share/sgml/stylesheets/dsssl/docbook ] &&
[ ! -L "${EPREFIX}"/usr/share/sgml/stylesheets/dsssl/docbook ]
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

please use bash [[ ]] and not POSIX [ ]

docbook-dsssl-stylesheets-1.79-r3: version bump
	* EAPI update
	* add DOCS and HTML_DOCS
	* use updated Makefile
	* change make to emake
	* install manpage
	* install docs using einstalldocs
files/docbook-dsssl-stylesheets-1.79.Makefile: new patch
	* use install instead of cp
	* make dir hierarchy with one mkdir call
	* don't create test subdir, seems not needed

Package-Manager: Portage-2.3.14, Repoman-2.3.6
@waebbl
Copy link
Contributor Author

waebbl commented Dec 20, 2017

Requested changes updated and pushed

@@ -8,7 +8,10 @@
# Author Matthew Turk <satai@gentoo.org>
# @BLURB: Functions for installing SGML catalogs

inherit base
case ${EAPI:-0} in
0|1|2|3|4|5) inherit base ;;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[0-5]) inherit base ;; should work too

sgml-catalog_cat_include "/etc/sgml/sgml-docbook.cat" \
"/etc/sgml/dsssl-docbook-stylesheets.cat"

src_unpack() {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

rename to src_prepare


src_unpack() {
unpack ${A}
cd "${S}" || die "change directory failed"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nix these two lines and just call default

inherit sgml-catalog

MY_P=${P/-stylesheets/}
S=${WORKDIR}/${MY_P}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

move S to after RDEPEND

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

also update year to 2018

@mgorny
Copy link
Member

mgorny commented Mar 14, 2018

Ping.

@FuzzyGophers
Copy link
Contributor

No activity in 60+ days. Please address any changes requested, rebase the branch, and re-open the pull request.

@waebbl waebbl deleted the eapibumps branch September 30, 2018 09:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug linked Bug/Closes found in footer, and cross-linked with the PR. maintainer-needed There is at least one affected package with no maintainer. Review it if you can. need assignment It was impossible to assign the PR correctly. Please assign it manually.
Projects
None yet
7 participants