Created attachment 417828 [details] Proposal ebuild for xfce-extra/xfpanel-switch-1.0.3 Hello ! I made an ebuild for a new application released for the Xfce desktop called xfpanel-switch. This tool allow you to backup and restore Xfce panel layouts. Upstream : https://launchpad.net/xfpanel-switch My ebuild emerge fine but it might not be perfect at the moment. If there's any issues with it, I would happily fix them and learn something on the way. Also, I'm willing to proxy-maintain it ! If it is possible, can you point me where I should ask ? Have a nice day, Laurent Vivier.
Created attachment 417832 [details] emerge --info
Created attachment 417836 [details] Proposal ebuild for xfce-extra/xfpanel-switch-1.0.3 Added --prefix=/usr since it should be the default install location
Another good start except this also needs to inherit an eclass, a new python eclass. It then takes on the var PYTHON_COMPAT used to set support to python 3. # As stated on the README, it depend on python3-gi (Python Gobject Introspection) I found the python3-gi is simply inbuilt into the emerged python 3. DEPEND="${RDEPEND}" I would double check. Often not required. The line ./configure changes with addition of the (new) python eclass.
Hi Ian, Thank you for your feedback on this ! I'm working on it but I've trouble to find the proper python eclass to inherit. I tried to look for clues regarding src_configure within the python* elcass located here : https://wiki.gentoo.org/wiki/Project:Python/Eclasses but I didn't find anything useful so far. Could you give me a hint on which eclass / function should I use to get rid of the "hardcoded" configure path ? Have a nice day. Laurent
Well yes https://wiki.gentoo.org/wiki/Project:Python https://wiki.gentoo.org/wiki/Project:Python/python-r1. You will also need the mandatory PYTHON_USEDEP with deps that require installed python modules.
Created attachment 418978 [details] xfpanel-switch-1.0.3 proposal ebuild Hi Ian, Thanks again for the help and links. Here's the updated version of the ebuild, I'm not sure I've got everything right so feel free to correct me. Have a nice day. Laurent
${S}/configure --prefix=/usr --python=python3: The pwd at that point is already ${S}, so it can be taken out there. --python=python3 is already taken care of by the use of PYTHON_COMPAT= and inherit python-r1. afaik the use of hasn't removed the need for [${PYTHON_USEDEP}] in dev-python/pygobject:3 i.e. dev-python/pygobject:3[${PYTHON_USEDEP}]
correction; afaik the use of EAPI 6 hasn't removed the need for [${PYTHON_USEDEP}] in dev-python/pygobject:3
Created attachment 541108 [details] xfpanel-switch-1.0.7.ebuild
Hi, having few to no experience in ebuilds, I started updating this ebuild. Updated to recent 1.0.7, EAPI=6, recent python 3.6, and moved pygobject from RDEPEND to DEPEND, isn't it requred at build time? Would be fine to get that tool into Portage.
Created attachment 541112 [details] xfpanel-switch-1.0.7.ebuild python_targets_python3_6 was installing, but failing at runtime: Traceback (most recent call last): File "/usr/share/xfpanel-switch/xfpanel-switch/xfpanel-switch.py", line 29, in <module> import gi ImportError: No module named 'gi' I needed to switch back to python_targets_python3_5, building and working.
Meanwhile xfpanel-switch was superseded by the official xfce4-panel-profiles: https://git.xfce.org/apps/xfce4-panel-profiles/ -> bug 663760
I've seen a release of that package and were wondering if anybody wants it.