From: "Jauhien Piatlicki" <piatlicki@gmail.com> To: gentoo-commits@lists.gentoo.org Subject: [gentoo-commits] proj/g-sorcery:master commit in: /, docs/ Date: Sat, 10 May 2014 13:31:40 +0000 (UTC) [thread overview] Message-ID: <1399728670.194ed5bae05304e7664c40110b7850b98347b64f.jauhien@gentoo> (raw) commit: 194ed5bae05304e7664c40110b7850b98347b64f Author: Jauhien Piatlicki <jauhien <AT> gentoo <DOT> org> AuthorDate: Sat May 10 13:31:10 2014 +0000 Commit: Jauhien Piatlicki <piatlicki <AT> gmail <DOT> com> CommitDate: Sat May 10 13:31:10 2014 +0000 URL: http://git.overlays.gentoo.org/gitweb/?p=proj/g-sorcery.git;a=commit;h=194ed5ba 0.1 release --- README.md | 133 +++++------------------------------------------ docs/g-sorcery.8 | 4 +- docs/g-sorcery.8.rst | 4 +- docs/g-sorcery.cfg.8 | 4 +- docs/g-sorcery.cfg.8.rst | 4 +- setup.py | 4 +- 6 files changed, 24 insertions(+), 129 deletions(-) diff --git a/README.md b/README.md index f0070a8..9bdd5b7 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,15 @@ +Usage +===== + +This project is a framework, you may be interested in it only if +you want to develop your own ebuild generator. + +As user you may be interested in already implemented ones: +[gs-elpa](https://github.com/jauhien/gs-elpa) and +[gs-pypi](https://github.com/jauhien/gs-pypi). + +User instructions in gs-elpa are more complete, so consult them for how to use. + Objective ========= @@ -10,124 +22,7 @@ maintained ebuilds in Gentoo tree or even in overlays. Installing such a software with its own distribution system does not seem like a good idea, especially if one needs to install it system-wide. -There is a number of solutions for this problem in Gentoo. But here -another problem lies: there are special dedicated “g-helpers” for a -number of 3rd party software providers. But, as Rafael Martins states -“each one tries to solve the very same problems on its own unique and -"innovative" way”. While it would be really nice to have a solid base -framework with realization of all the basic algorithms necessary for -ebuild and overlay generation, with uniform UI and with good -integration with system package manager. - -Deliverables - -At the end of the project there should be a framework and number of -backends for some of the 3rd party software providers. This framework -should make writing of those g-helpers easier and regular. - -At the moment I see this framework as a number of classes in Python -that can be inherited and expanded in backends with the specific -logic. All the logic related to the interaction with user, portage and -overlay tools should be implemented in the framework and normally -should not be changed by backends. Integration with system may need -patching of some existing tools (like layman). - -Framework should have: - basic logic for ebuild and overlay -manipulation, dependencies resolving, patching and so on - cli, that -allows users to generate separate ebuilds and even overlays with -available backends - integration with other system tools (I mean -layman, as I'm not really familiar with tools used by other package -manglers. But supporting them would be a good idea as well). - -Backend should have everything specific for a given 3rd party software -provider: concrete algorithms for ebuild-generation, eclasses, -databases with information about available software and so on. - -Installation and using -====================== - -You will need **app-portage/layman-9999** (when you emerge a backend you are -interested in it will be pulled in authomatically). - -Add `jauhien` overlay: **layman -a jauhien**. - -Currently 2 backends are available: **gs-elpa** and **gs-pypi**. - -Here is an example of using gs-elpa backend. - -Emerge backend you want to use: **emerge -va gs-elpa**. - -There are two ways of using **gs-elpa**: - -* use it with **layman** - -In this case all you need to do is install **layman-9999** and **g-sorcery**. -Then you should just run `layman -L` as -root and find an overlay you want. Type of overlay will be -displayed as *g-sorcery*. Then you add this overlay as -usual. It's all you need to do and it's the recommended way of -using **g-sorcery**. - -Using **g-sorcery** with layman you can populate overlay only with packages you want. -To do so you should add a section named BACKEND (BACKEND here is the name of backend used for -your repo). In this section you can add entries named REPO_packages (REPO here is the name -of repository you want to add) which are space separated lists of packages you need. ebuilds for -dependencies will be generated automatically if backend supports this possibility. - -Note, that some overlays may depend on other overlays, in this case you'll need to add those -dependencies first. - - -* use it as stand-alone tool - -In this case you should create an overlay (see **portage** documentation), sync it and populate -it with one or more ebuilds. Then ebuilds could be installed by emerge or by **gs-elpa** tool. - -**Using gs-elpa with layman** - -Execute - -**layman -L** - -Find there an overlay you need (there are -3 gs-elpa overlays currently: gnu-elpa, marmalade and melpa). -Add, e.g. - -**layman -a gnu-elpa -a marmalade** - -Emerge any package from it, e.g. - -**emerge -va clojure-mode** - -To generate only ebuilds we need such a */etc/g-sorcery/g-sorcery.cfg* file can be used: - -``` -[main] -package_manager=portage - -[gs-elpa] -marmalade_packages = clojure-mode clojurescript-mode -``` - - -**Generating user ebuilds in user overlay** - -Create new user overlay. Run - -**gs-elpa -o** *OVERLAY_DIRECTORY* **-r gnu-elpa** **sync** - -List packages: - -**gs-elpa -o** *OVERLAY_DIRECTORY* **-r gnu-elpa** **list** - -Install any package you want: - -**gs-elpa -o** *OVERLAY_DIRECTORY* **-r gnu-elpa** **install** *PACKAGE* - -Repositories you can use are gnu-elpa, marmalade and melpa. You can use them -all in one overlay. Note, that if you call **generate-tree** command your overlay -will be wiped and overlay tree for a given repository will be generated. Be careful! - -See man pages of **gs-elpa** and **gs-pypi** for further information. +This project is aimed to create a framework for ebuild-generators for +3rd party software providers. If you want to develop a new backend see [developer's instructions](https://github.com/jauhien/g-sorcery/blob/master/docs/developer_instructions.rst). diff --git a/docs/g-sorcery.8 b/docs/g-sorcery.8 index 066e35b..1d2f353 100644 --- a/docs/g-sorcery.8 +++ b/docs/g-sorcery.8 @@ -1,6 +1,6 @@ .\" Man page generated from reStructuredText. . -.TH G-SORCERY 8 "2013-08-04" "0.1" "g-sorcery" +.TH G-SORCERY 8 "2014-05-10" "0.1" "g-sorcery" .SH NAME g-sorcery \- manage overlays for 3rd party software providers . @@ -133,6 +133,6 @@ Written by Jauhien Piatlicki <piatlicki@gmail.com>. GSoC idea and mentorship by Rafael Martins. Lots of help and improvements by Brian Dolbec. Integration with layman based on work of Auke Booij. .SH COPYRIGHT -Copyright (c) 2013 Jauhien Piatlicki, License: GPL-2 +Copyright (c) 2013-2014 Jauhien Piatlicki, License: GPL-2 .\" Generated by docutils manpage writer. . diff --git a/docs/g-sorcery.8.rst b/docs/g-sorcery.8.rst index 9ea702f..86f7e66 100644 --- a/docs/g-sorcery.8.rst +++ b/docs/g-sorcery.8.rst @@ -9,8 +9,8 @@ manage overlays for 3rd party software providers :Author: Written by Jauhien Piatlicki <piatlicki@gmail.com>. GSoC idea and mentorship by Rafael Martins. Lots of help and improvements by Brian Dolbec. Integration with layman based on work of Auke Booij. -:Date: 2013-08-04 -:Copyright: Copyright (c) 2013 Jauhien Piatlicki, License: GPL-2 +:Date: 2014-05-10 +:Copyright: Copyright (c) 2013-2014 Jauhien Piatlicki, License: GPL-2 :Version: 0.1 :Manual section: 8 :Manual group: g-sorcery diff --git a/docs/g-sorcery.cfg.8 b/docs/g-sorcery.cfg.8 index 1643315..9167c29 100644 --- a/docs/g-sorcery.cfg.8 +++ b/docs/g-sorcery.cfg.8 @@ -1,6 +1,6 @@ .\" Man page generated from reStructuredText. . -.TH G-SORCERY.CFG 8 "2013-09-20" "0.1" "g-sorcery" +.TH G-SORCERY.CFG 8 "2014-05-10" "0.1" "g-sorcery" .SH NAME g-sorcery.cfg \- custom settings for g-sorcery . @@ -69,6 +69,6 @@ Written by Jauhien Piatlicki <piatlicki@gmail.com>. GSoC idea and mentorship by Rafael Martins. Lots of help and improvements by Brian Dolbec. .SH COPYRIGHT -Copyright (c) 2013 Jauhien Piatlicki, License: GPL-2 +Copyright (c) 2013-2014 Jauhien Piatlicki, License: GPL-2 .\" Generated by docutils manpage writer. . diff --git a/docs/g-sorcery.cfg.8.rst b/docs/g-sorcery.cfg.8.rst index 7f9790f..930b4db 100644 --- a/docs/g-sorcery.cfg.8.rst +++ b/docs/g-sorcery.cfg.8.rst @@ -9,8 +9,8 @@ custom settings for g-sorcery :Author: Written by Jauhien Piatlicki <piatlicki@gmail.com>. GSoC idea and mentorship by Rafael Martins. Lots of help and improvements by Brian Dolbec. -:Date: 2013-09-20 -:Copyright: Copyright (c) 2013 Jauhien Piatlicki, License: GPL-2 +:Date: 2014-05-10 +:Copyright: Copyright (c) 2013-2014 Jauhien Piatlicki, License: GPL-2 :Version: 0.1 :Manual section: 8 :Manual group: g-sorcery diff --git a/setup.py b/setup.py index 9517fdc..015ec76 100644 --- a/setup.py +++ b/setup.py @@ -3,8 +3,8 @@ from distutils.core import setup setup(name = 'g-sorcery', - version = '0.1_alpha', - description = 'g-sorcery framework for automated ebuild generators', + version = '0.1', + description = 'framework for automated ebuild generators', author = 'Jauhien Piatlicki', author_email = 'jauhien@gentoo.org', packages = ['g_sorcery', 'gs_db_tool'],
WARNING: multiple messages have this Message-ID (diff)
From: "Jauhien Piatlicki" <piatlicki@gmail.com> To: gentoo-commits@lists.gentoo.org Subject: [gentoo-commits] proj/g-sorcery:dev commit in: /, docs/ Date: Sat, 10 May 2014 13:31:49 +0000 (UTC) [thread overview] Message-ID: <1399728670.194ed5bae05304e7664c40110b7850b98347b64f.jauhien@gentoo> (raw) Message-ID: <20140510133149.nhwlM4YXxWXCjoVC6Ig3kOS764fRODA0NHyEBg7MLhQ@z> (raw) commit: 194ed5bae05304e7664c40110b7850b98347b64f Author: Jauhien Piatlicki <jauhien <AT> gentoo <DOT> org> AuthorDate: Sat May 10 13:31:10 2014 +0000 Commit: Jauhien Piatlicki <piatlicki <AT> gmail <DOT> com> CommitDate: Sat May 10 13:31:10 2014 +0000 URL: http://git.overlays.gentoo.org/gitweb/?p=proj/g-sorcery.git;a=commit;h=194ed5ba 0.1 release --- README.md | 133 +++++------------------------------------------ docs/g-sorcery.8 | 4 +- docs/g-sorcery.8.rst | 4 +- docs/g-sorcery.cfg.8 | 4 +- docs/g-sorcery.cfg.8.rst | 4 +- setup.py | 4 +- 6 files changed, 24 insertions(+), 129 deletions(-) diff --git a/README.md b/README.md index f0070a8..9bdd5b7 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,15 @@ +Usage +===== + +This project is a framework, you may be interested in it only if +you want to develop your own ebuild generator. + +As user you may be interested in already implemented ones: +[gs-elpa](https://github.com/jauhien/gs-elpa) and +[gs-pypi](https://github.com/jauhien/gs-pypi). + +User instructions in gs-elpa are more complete, so consult them for how to use. + Objective ========= @@ -10,124 +22,7 @@ maintained ebuilds in Gentoo tree or even in overlays. Installing such a software with its own distribution system does not seem like a good idea, especially if one needs to install it system-wide. -There is a number of solutions for this problem in Gentoo. But here -another problem lies: there are special dedicated “g-helpers” for a -number of 3rd party software providers. But, as Rafael Martins states -“each one tries to solve the very same problems on its own unique and -"innovative" way”. While it would be really nice to have a solid base -framework with realization of all the basic algorithms necessary for -ebuild and overlay generation, with uniform UI and with good -integration with system package manager. - -Deliverables - -At the end of the project there should be a framework and number of -backends for some of the 3rd party software providers. This framework -should make writing of those g-helpers easier and regular. - -At the moment I see this framework as a number of classes in Python -that can be inherited and expanded in backends with the specific -logic. All the logic related to the interaction with user, portage and -overlay tools should be implemented in the framework and normally -should not be changed by backends. Integration with system may need -patching of some existing tools (like layman). - -Framework should have: - basic logic for ebuild and overlay -manipulation, dependencies resolving, patching and so on - cli, that -allows users to generate separate ebuilds and even overlays with -available backends - integration with other system tools (I mean -layman, as I'm not really familiar with tools used by other package -manglers. But supporting them would be a good idea as well). - -Backend should have everything specific for a given 3rd party software -provider: concrete algorithms for ebuild-generation, eclasses, -databases with information about available software and so on. - -Installation and using -====================== - -You will need **app-portage/layman-9999** (when you emerge a backend you are -interested in it will be pulled in authomatically). - -Add `jauhien` overlay: **layman -a jauhien**. - -Currently 2 backends are available: **gs-elpa** and **gs-pypi**. - -Here is an example of using gs-elpa backend. - -Emerge backend you want to use: **emerge -va gs-elpa**. - -There are two ways of using **gs-elpa**: - -* use it with **layman** - -In this case all you need to do is install **layman-9999** and **g-sorcery**. -Then you should just run `layman -L` as -root and find an overlay you want. Type of overlay will be -displayed as *g-sorcery*. Then you add this overlay as -usual. It's all you need to do and it's the recommended way of -using **g-sorcery**. - -Using **g-sorcery** with layman you can populate overlay only with packages you want. -To do so you should add a section named BACKEND (BACKEND here is the name of backend used for -your repo). In this section you can add entries named REPO_packages (REPO here is the name -of repository you want to add) which are space separated lists of packages you need. ebuilds for -dependencies will be generated automatically if backend supports this possibility. - -Note, that some overlays may depend on other overlays, in this case you'll need to add those -dependencies first. - - -* use it as stand-alone tool - -In this case you should create an overlay (see **portage** documentation), sync it and populate -it with one or more ebuilds. Then ebuilds could be installed by emerge or by **gs-elpa** tool. - -**Using gs-elpa with layman** - -Execute - -**layman -L** - -Find there an overlay you need (there are -3 gs-elpa overlays currently: gnu-elpa, marmalade and melpa). -Add, e.g. - -**layman -a gnu-elpa -a marmalade** - -Emerge any package from it, e.g. - -**emerge -va clojure-mode** - -To generate only ebuilds we need such a */etc/g-sorcery/g-sorcery.cfg* file can be used: - -``` -[main] -package_manager=portage - -[gs-elpa] -marmalade_packages = clojure-mode clojurescript-mode -``` - - -**Generating user ebuilds in user overlay** - -Create new user overlay. Run - -**gs-elpa -o** *OVERLAY_DIRECTORY* **-r gnu-elpa** **sync** - -List packages: - -**gs-elpa -o** *OVERLAY_DIRECTORY* **-r gnu-elpa** **list** - -Install any package you want: - -**gs-elpa -o** *OVERLAY_DIRECTORY* **-r gnu-elpa** **install** *PACKAGE* - -Repositories you can use are gnu-elpa, marmalade and melpa. You can use them -all in one overlay. Note, that if you call **generate-tree** command your overlay -will be wiped and overlay tree for a given repository will be generated. Be careful! - -See man pages of **gs-elpa** and **gs-pypi** for further information. +This project is aimed to create a framework for ebuild-generators for +3rd party software providers. If you want to develop a new backend see [developer's instructions](https://github.com/jauhien/g-sorcery/blob/master/docs/developer_instructions.rst). diff --git a/docs/g-sorcery.8 b/docs/g-sorcery.8 index 066e35b..1d2f353 100644 --- a/docs/g-sorcery.8 +++ b/docs/g-sorcery.8 @@ -1,6 +1,6 @@ .\" Man page generated from reStructuredText. . -.TH G-SORCERY 8 "2013-08-04" "0.1" "g-sorcery" +.TH G-SORCERY 8 "2014-05-10" "0.1" "g-sorcery" .SH NAME g-sorcery \- manage overlays for 3rd party software providers . @@ -133,6 +133,6 @@ Written by Jauhien Piatlicki <piatlicki@gmail.com>. GSoC idea and mentorship by Rafael Martins. Lots of help and improvements by Brian Dolbec. Integration with layman based on work of Auke Booij. .SH COPYRIGHT -Copyright (c) 2013 Jauhien Piatlicki, License: GPL-2 +Copyright (c) 2013-2014 Jauhien Piatlicki, License: GPL-2 .\" Generated by docutils manpage writer. . diff --git a/docs/g-sorcery.8.rst b/docs/g-sorcery.8.rst index 9ea702f..86f7e66 100644 --- a/docs/g-sorcery.8.rst +++ b/docs/g-sorcery.8.rst @@ -9,8 +9,8 @@ manage overlays for 3rd party software providers :Author: Written by Jauhien Piatlicki <piatlicki@gmail.com>. GSoC idea and mentorship by Rafael Martins. Lots of help and improvements by Brian Dolbec. Integration with layman based on work of Auke Booij. -:Date: 2013-08-04 -:Copyright: Copyright (c) 2013 Jauhien Piatlicki, License: GPL-2 +:Date: 2014-05-10 +:Copyright: Copyright (c) 2013-2014 Jauhien Piatlicki, License: GPL-2 :Version: 0.1 :Manual section: 8 :Manual group: g-sorcery diff --git a/docs/g-sorcery.cfg.8 b/docs/g-sorcery.cfg.8 index 1643315..9167c29 100644 --- a/docs/g-sorcery.cfg.8 +++ b/docs/g-sorcery.cfg.8 @@ -1,6 +1,6 @@ .\" Man page generated from reStructuredText. . -.TH G-SORCERY.CFG 8 "2013-09-20" "0.1" "g-sorcery" +.TH G-SORCERY.CFG 8 "2014-05-10" "0.1" "g-sorcery" .SH NAME g-sorcery.cfg \- custom settings for g-sorcery . @@ -69,6 +69,6 @@ Written by Jauhien Piatlicki <piatlicki@gmail.com>. GSoC idea and mentorship by Rafael Martins. Lots of help and improvements by Brian Dolbec. .SH COPYRIGHT -Copyright (c) 2013 Jauhien Piatlicki, License: GPL-2 +Copyright (c) 2013-2014 Jauhien Piatlicki, License: GPL-2 .\" Generated by docutils manpage writer. . diff --git a/docs/g-sorcery.cfg.8.rst b/docs/g-sorcery.cfg.8.rst index 7f9790f..930b4db 100644 --- a/docs/g-sorcery.cfg.8.rst +++ b/docs/g-sorcery.cfg.8.rst @@ -9,8 +9,8 @@ custom settings for g-sorcery :Author: Written by Jauhien Piatlicki <piatlicki@gmail.com>. GSoC idea and mentorship by Rafael Martins. Lots of help and improvements by Brian Dolbec. -:Date: 2013-09-20 -:Copyright: Copyright (c) 2013 Jauhien Piatlicki, License: GPL-2 +:Date: 2014-05-10 +:Copyright: Copyright (c) 2013-2014 Jauhien Piatlicki, License: GPL-2 :Version: 0.1 :Manual section: 8 :Manual group: g-sorcery diff --git a/setup.py b/setup.py index 9517fdc..015ec76 100644 --- a/setup.py +++ b/setup.py @@ -3,8 +3,8 @@ from distutils.core import setup setup(name = 'g-sorcery', - version = '0.1_alpha', - description = 'g-sorcery framework for automated ebuild generators', + version = '0.1', + description = 'framework for automated ebuild generators', author = 'Jauhien Piatlicki', author_email = 'jauhien@gentoo.org', packages = ['g_sorcery', 'gs_db_tool'],
next reply other threads:[~2014-05-10 13:31 UTC|newest] Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top 2014-05-10 13:31 Jauhien Piatlicki [this message] 2014-05-10 13:31 ` [gentoo-commits] proj/g-sorcery:dev commit in: /, docs/ Jauhien Piatlicki -- strict thread matches above, loose matches on Subject: below -- 2023-02-24 18:02 [gentoo-commits] proj/g-sorcery:master " Ulrich Müller 2023-02-24 17:38 Ulrich Müller 2013-09-19 23:50 Jauhien Piatlicki 2013-08-29 1:12 Jauhien Piatlicki 2013-08-06 20:09 Jauhien Piatlicki
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=1399728670.194ed5bae05304e7664c40110b7850b98347b64f.jauhien@gentoo \ --to=piatlicki@gmail.com \ --cc=gentoo-commits@lists.gentoo.org \ --cc=gentoo-dev@lists.gentoo.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox