From e86f4dfc91b394f56db6b2a5574aea1d8520e33e Mon Sep 17 00:00:00 2001 From: tastytea Date: Sat, 16 Jul 2022 19:02:10 +0200 Subject: [PATCH] www-apps/misskey: drop 12.111.1 Signed-off-by: tastytea --- www-apps/misskey/Manifest | 2 - www-apps/misskey/misskey-12.111.1.ebuild | 146 ----------------------- 2 files changed, 148 deletions(-) delete mode 100644 www-apps/misskey/misskey-12.111.1.ebuild diff --git a/www-apps/misskey/Manifest b/www-apps/misskey/Manifest index d7977ba..adaa29d 100644 --- a/www-apps/misskey/Manifest +++ b/www-apps/misskey/Manifest @@ -1,5 +1,3 @@ -DIST misskey-12.111.1-deps.tar.xz 479854680 BLAKE2B 715e18d9e42334d17293ddb8edb767a0c903433c0f3ae96d18849b903dc7ccc899162d422f04bba967d0dfc97a86cec63e8abd5c5b1c4d9f990fb91b2b5386c8 SHA512 379336d856b73c779db1e4876e69f4fecb6b830919f8873d418d02fa7e1c3f5d26d18c1d42881037c2135846e5d3cf325abe7dbbe89cc44774d42bd4e5a1d495 -DIST misskey-12.111.1.tar.gz 4843917 BLAKE2B 57b3c315e7a91d732e30878b575fd8b167939f83cdd8291a6eab2bf3788278463ca1fc1fab1715cc1314796f772fe8cdf35217d2d975060d3f178739bde06018 SHA512 08a0c1f423456bcaa19be81eb0ca356702e2cc24615b4d101b9e4cafd80cbd90b27d90dddc40cbf20d94c483ea8f84c3356acc23191d200907305713040169a9 DIST misskey-12.112.3-deps.tar.xz 581620200 BLAKE2B e2a0db68cc77f97fbcc881b9e4cb28073c6fc17b1e6fcbc4bb71e4d4b96af4aed682fe46c13a80583aadee88b2a2ec0a2202f8991acaadc1d78e84b71e1f2de8 SHA512 9c2279619d7fd7e24cce98a4cfcb73684b062d6d82ea7a5751e6b6acf7f6d269488a6e264c6eb3d8bc83e1abe139700e93284f51862d1260670be8a4c8cbc7f5 DIST misskey-12.112.3.tar.gz 19866516 BLAKE2B 5b5e921a61f281488ce0bcdeea49c0a50be89fcf108f4083c65039a0b474968c1ad26cb68ac1bc017c59400ba2033c6a85f4ed216e33ed9698a941bd40269774 SHA512 bbfe0d791ec7b16bbe3dd1a393c0cf60d9e58e0d039a53dcc1b71c610b3b362e22aae1c29f0ab91e3a77c05a8e25e167df41da58a4b1170acb056b9b0dacc0bb DIST misskey-12.115.0-deps.tar.xz 561393364 BLAKE2B b66b812d31778bc6ffa850d70bca5b862765d2798185971a710d0be04e8515a66e9b9f4870475611840bf26bb1ba98aa960605d92c6d3c59bacd245520dde28b SHA512 46f4da31cce61e3800b7e7fd9a5d5a29548d6afb5a384f1bc9f06e25a352ecff8618649c49e7e96bbbdd565edbc94909d9ed537aa2ba192c8a361b3f6cae7fd7 diff --git a/www-apps/misskey/misskey-12.111.1.ebuild b/www-apps/misskey/misskey-12.111.1.ebuild deleted file mode 100644 index 3f616f9..0000000 --- a/www-apps/misskey/misskey-12.111.1.ebuild +++ /dev/null @@ -1,146 +0,0 @@ -# Copyright 2022 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=7 - -inherit optfeature savedconfig - -# NOTE: update for each bump -MY_COMMIT_ASSETS="0179793ec891856d6f37a3be16ba4c22f67a81b5" - -DESCRIPTION="An interplanetary microblogging platform" -HOMEPAGE="https://misskey-hub.net/" -SRC_URI=" - https://github.com/misskey-dev/misskey/archive/refs/tags/${PV}.tar.gz -> ${P}.tar.gz - https://github.com/misskey-dev/assets/archive/${MY_COMMIT_ASSETS}.tar.gz -> ${PN}-assets-${MY_COMMIT_ASSETS}.tar.gz - https://tastytea.de/files/gentoo/${P}-deps.tar.xz -" - -# NOTE: to generate the deps archive: -# export YARN_CACHE_FOLDER="$(realpath ./packages-cache)" -# export CYPRESS_CACHE_FOLDER="$(realpath ./packages-cache)" -# export npm_config_cache="$(realpath ./packages-cache)" -# yarn clean-all && rm -r packages-cache -# yarn install -# tar -caf ${P}-deps.tar.xz packages-cache -# unset YARN_CACHE_FOLDER CYPRESS_CACHE_FOLDER npm_config_cache - -LICENSE="GPL-3" -SLOT="0" -KEYWORDS="~amd64" -IUSE="nginx +savedconfig source" - -REQUIRED_USE="savedconfig" - -RESTRICT="strip" - -COMMON_DEPEND=" - net-libs/nodejs:0/16 - sys-apps/yarn -" -BDEPEND=" - ${COMMON_DEPEND} - dev-lang/nasm - virtual/pkgconfig -" -RDEPEND=" - ${COMMON_DEPEND} - acct-user/misskey - dev-db/postgresql - dev-db/redis - nginx? ( www-servers/nginx ) -" - -src_unpack() { - default - mv --no-target-directory assets-${MY_COMMIT_ASSETS} ${P}/${PN}-assets \ - || die "Could not move assets" - mv packages-cache ${T}/ || die "Could not move packages cache" -} - -src_prepare() { - export YARNFLAGS="--offline --verbose --frozen-lockfile" - export YARN_CACHE_FOLDER="${T}"/packages-cache - export CYPRESS_CACHE_FOLDER="${T}"/packages-cache - export npm_config_cache="${T}"/packages-cache - # use system node-gyp - PATH+=":/usr/lib64/node_modules/npm/bin/node-gyp-bin" - export npm_config_nodedir=/usr/include/node/ - - restore_config .config/default.yml - if [[ ! -f .config/default.yml ]]; then - eerror "Edit .config/example.yml and save it to the location mentioned above" - die "No config file found" - fi - - default -} - -src_compile() { - yarn ${YARNFLAGS} install || die "dependency installation failed" - NODE_ENV=production yarn ${YARNFLAGS} build || die "build failed" -} - -src_install() { - insinto opt/misskey/misskey - insopts -o misskey -g misskey - if use source; then - doins -r . - else - doins -r package.json .node-version .config built packages - fi - - # insopts doesn't affect directories - chown --recursive misskey:misskey "${ED}"/opt/misskey/misskey - chmod o= "${ED}"/opt/misskey/misskey - - newinitd ${FILESDIR}/${PN}.initd ${PN} - if use nginx; then - sed -i 's/use logger$/use logger nginx/' "${ED}"/etc/init.d/${PN} \ - || die "Could not modify OpenRC init script" - fi - - einstalldocs -} - -pkg_preinst() { - # Apparently Misskey creates files at runtime that can interfere - # after an upgrade. Normally you would run 'yarn cleanall'. - einfo "Cleaning up Misskey directory …" - su --shell /bin/bash --login --command \ - "rm -rf misskey/{built,packages,node_modules}" \ - misskey || die "cleanup failed" -} - -pkg_postinst() { - # Only run migrations if database exists - if su --login --command "psql misskey -c ''" postgres; then - einfo "Running 'yarn migrate'" - su --shell /bin/bash --login --command \ - "cd misskey && yarn ${YARNFLAGS} --verbose migrate" \ - misskey || die "migration failed" - else - elog "Run emerge --config ${CATEGORY}/${PN} to initialise the PostgreSQL database" - fi - - if use nginx; then - einfo "An nginx example config can be found at " - fi - - optfeature "thumbnail generation support" media-video/ffmpeg -} - -pkg_config() { - einfo "Initialising PostgreSQL database" - echo -n "password for misskey user: " - read MY_PASSWORD || die "Reading password failed" - echo "create database misskey; create user misskey with encrypted password '${MY_PASSWORD}'; grant all privileges on database misskey to misskey; \q" \ - | su --login --command psql postgres || die "database creation failed" - - su --shell /bin/bash --login --command \ - "cd misskey && yarn ${YARNFLAGS} run init" \ - misskey || die "database initialisation failed" - - ewarn "When you first start Misskey you will be asked to add an admin account via the web interface, and registrations are enabled." - ewarn "Do not expose the web interface to the public until after you configured your instance\!" -}