first try of a searx-ebuild.
This commit is contained in:
		
							
								
								
									
										2
									
								
								www-apps/searx/Manifest
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										2
									
								
								www-apps/searx/Manifest
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,2 @@ | ||||
| DIST searx-0.15.0.tar.gz 1818927 BLAKE2B bb15ec89e410a96a984ba88c98131493fbfbe9b6ad9e9048376be806f931e451d7be01adc5b662695725aabe66c11b8ff8ff94f7425a4af3068edbe5f450c8e0 SHA512 9d605ca08adc91fab27b4fd5311c9585620a9152e9f3e8b4f41f6ec7231af3efe3effdd3f8c0e6d08898c2116ef429455ec8525dad35e17329bd1e509828ba4b | ||||
| EBUILD searx-0.15.0.ebuild 1177 BLAKE2B fa3e33c02312e5677b3c98f8771d74fc3985e068fb329e353d2681f2898718772bb454781ccc459b38d2c0e9983af669e4fb4e5592a131b0c48f039b9e81882d SHA512 2303180db769119f472fb066909ba6c5d58dde6922bd5bc14587793088e016be088c6220ad13830e23b1307c4ffef86e19b3f8ef867fe21489273475769434e1 | ||||
							
								
								
									
										53
									
								
								www-apps/searx/searx-0.15.0.ebuild
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										53
									
								
								www-apps/searx/searx-0.15.0.ebuild
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,53 @@ | ||||
| # Copyright 2019 Gentoo Authors | ||||
| # Distributed under the terms of the GNU General Public License v2 | ||||
|  | ||||
| EAPI=7 | ||||
| PYTHON_COMPAT=( python2_7 python3_{4,5,6} ) | ||||
| inherit user distutils-r1 #webapp | ||||
|  | ||||
| DESCRIPTION="Searx is a free internet metasearch engine which aggregates results." | ||||
| HOMEPAGE="https://asciimoo.github.io/searx/index.html" | ||||
| GITHUB_USER="asciimoo" | ||||
| GITHUB_TAG="${PV}" | ||||
| SRC_URI="https://github.com/${GITHUB_USER}/${PN}/archive/v${GITHUB_TAG}.tar.gz -> ${P}.tar.gz" | ||||
|  | ||||
|  | ||||
| LICENSE="AGPL3" | ||||
| SLOT="0" | ||||
| KEYWORDS="~amd64 ~x86" | ||||
| IUSE="" | ||||
| WEBAPP_MANUAL_SLOT="yes" | ||||
|  | ||||
| DEPEND=" | ||||
| 		dev-python/Babel | ||||
| 		virtual/libffi | ||||
|  | ||||
| 		dev-python/certifi | ||||
| 		dev-python/flask | ||||
| 		dev-python/flask-babel | ||||
| 		dev-python/lxml | ||||
| 		dev-python/idna | ||||
| 		dev-python/pygments | ||||
| 		dev-python/pyopenssl | ||||
| 		dev-python/python-dateutil | ||||
| 		dev-python/pyyaml | ||||
| 		dev-python/requests[socks5] | ||||
| " | ||||
| RDEPEND="${DEPEND}" | ||||
| BDEPEND="" | ||||
|  | ||||
| src_prepare() { | ||||
| 	sed -i -e "s!'tests/.*\$!!g" \ | ||||
| 		-e "s!^dev_requirements.*\$!!g" \ | ||||
| 		-e "s!'test': dev_requirements!!g" \ | ||||
| 		setup.py | ||||
| 	sed -i -e "s/ultrasecretkey/`openssl rand -hex 16`/g" searx/settings.yml | ||||
| 	rm -rf tests | ||||
| 	rm requirements-dev.txt | ||||
| 	eapply_user | ||||
| } | ||||
|  | ||||
| pkg_setup() { | ||||
| 	enewgroup searx | ||||
| 	enewuser searx -1 -1 -1 searx | ||||
| } | ||||
		Reference in New Issue
	
	Block a user