git: f12ee9e99a - main - update translation of books/porters-handbook to Russian
Vladlen Popolitov <[email protected]>
| Newsgroups | gmane.os.freebsd.devel.cvs.doc |
|---|---|
| Message-ID | <[email protected]> |
The branch main has been updated by vladlen: URL: https://cgit.FreeBSD.org/doc/commit/?id=f12ee9e99a2c070bcf4965efe40975cb0f47c6ca commit f12ee9e99a2c070bcf4965efe40975cb0f47c6ca Author: Vladlen Popolitov <[email protected]> AuthorDate: 2025-09-18 19:21:21 +0000 Commit: Vladlen Popolitov <[email protected]> CommitDate: 2025-09-18 19:21:34 +0000 update translation of books/porters-handbook to Russian Reviewed by: maxim (mentor) and arrowd Approved by: maxim (mentor) and carlavilla Differential Revision: https://reviews.freebsd.org/D52053 --- .../content/ru/books/porters-handbook/_index.adoc | 20 +- .../content/ru/books/porters-handbook/_index.po | 37 + .../content/ru/books/porters-handbook/book.adoc | 17 +- .../content/ru/books/porters-handbook/book.po | 37 + .../ru/books/porters-handbook/flavors/_index.adoc | 359 + .../ru/books/porters-handbook/flavors/_index.po | 801 + .../books/porters-handbook/keeping-up/_index.adoc | 39 +- .../ru/books/porters-handbook/keeping-up/_index.po | 270 + .../books/porters-handbook/makefiles/_index.adoc | 4540 ++- .../ru/books/porters-handbook/makefiles/_index.po | 14066 ++++++++ .../ru/books/porters-handbook/new-port/_index.adoc | 14 +- .../ru/books/porters-handbook/new-port/_index.po | 101 + .../ru/books/porters-handbook/order/_index.adoc | 260 + .../ru/books/porters-handbook/order/_index.po | 780 + .../books/porters-handbook/pkg-files/_index.adoc | 228 +- .../ru/books/porters-handbook/pkg-files/_index.po | 873 + .../ru/books/porters-handbook/plist/_index.adoc | 548 +- .../ru/books/porters-handbook/plist/_index.po | 1731 + .../porters-handbook/porting-dads/_index.adoc | 214 +- .../books/porters-handbook/porting-dads/_index.po | 1473 + .../porters-handbook/porting-samplem/_index.adoc | 138 +- .../porters-handbook/porting-samplem/_index.po | 412 + .../books/porters-handbook/porting-why/_index.adoc | 10 +- .../books/porters-handbook/porting-why/_index.po | 61 + .../porters-handbook/quick-porting/_index.adoc | 166 +- .../books/porters-handbook/quick-porting/_index.po | 767 + .../ru/books/porters-handbook/security/_index.adoc | 158 +- .../ru/books/porters-handbook/security/_index.po | 858 + .../porters-handbook/slow-porting/_index.adoc | 173 +- .../books/porters-handbook/slow-porting/_index.po | 1017 + .../ru/books/porters-handbook/special/_index.adoc | 4512 ++- .../ru/books/porters-handbook/special/_index.po | 14978 ++++++++ .../ru/books/porters-handbook/testing/_index.adoc | 460 +- .../ru/books/porters-handbook/testing/_index.po | 1685 + .../books/porters-handbook/upgrading/_index.adoc | 181 +- .../ru/books/porters-handbook/upgrading/_index.po | 688 + .../ru/books/porters-handbook/uses/_index.adoc | 2185 +- .../ru/books/porters-handbook/uses/_index.po | 9971 ++++++ .../ru/books/porters-handbook/versions/_index.adoc | 6184 ++-- .../ru/books/porters-handbook/versions/_index.po | 33861 +++++++++++++++++++ 40 files changed, 99021 insertions(+), 5852 deletions(-) diff --git a/documentation/content/ru/books/porters-handbook/_index.adoc b/documentation/content/ru/books/porters-handbook/_index.adoc index 5b066cb5b0..0446d79b28 100644 --- a/documentation/content/ru/books/porters-handbook/_index.adoc +++ b/documentation/content/ru/books/porters-handbook/_index.adoc @@ -1,15 +1,19 @@ --- -title: Ð ÑководÑÑво FreeBSD по ÑÐ¾Ð·Ð´Ð°Ð½Ð¸Ñ Ð¿Ð¾ÑÑов -authors: - - author: The FreeBSD Documentation Project -copyright: 2000-2020 The FreeBSD Documentation Project -trademarks: ["freebsd", "sun", "unix", "general"] -next: books/porters-handbook/porting-why add_single_page_link: true +authors: + - + author: 'The FreeBSD Documentation Project' +bookOrder: 15 +copyright: '2000-2023 The FreeBSD Documentation Project' +description: 'ÐбÑзаÑелÑно к пÑоÑÑениÑ, еÑли Ð²Ñ Ð¿Ð»Ð°Ð½Ð¸ÑÑеÑе поÑÑиÑоваÑÑ ÑÑоÑоннее пÑогÑаммное обеÑпеÑение' +next: books/porters-handbook/porting-why +params: + path: /books/porters-handbook/ showBookMenu: true +tags: "[\"FreeBSD Porter's Handbook\", \"Porting\", \"FreeBSD Ports Collection\"]" +title: 'Ð ÑководÑÑво FreeBSD по ÑÐ¾Ð·Ð´Ð°Ð½Ð¸Ñ Ð¿Ð¾ÑÑов' +trademarks: ["freebsd", "sun", "unix", "general"] weight: 0 -params: - path: "/books/porters-handbook/" --- = Ð ÑководÑÑво FreeBSD по ÑÐ¾Ð·Ð´Ð°Ð½Ð¸Ñ Ð¿Ð¾ÑÑов diff --git a/documentation/content/ru/books/porters-handbook/_index.po b/documentation/content/ru/books/porters-handbook/_index.po new file mode 100644 index 0000000000..1aa07698c1 --- /dev/null +++ b/documentation/content/ru/books/porters-handbook/_index.po @@ -0,0 +1,37 @@ +# SOME DESCRIPTIVE TITLE +# Copyright (C) YEAR The FreeBSD Project +# This file is distributed under the same license as the FreeBSD Documentation package. +# Vladlen Popolitov <[email protected]>, 2025. +msgid "" +msgstr "" +"Project-Id-Version: FreeBSD Documentation VERSION\n" +"POT-Creation-Date: 2025-09-18 22:05+0300\n" +"PO-Revision-Date: 2025-07-12 04:45+0000\n" +"Last-Translator: Vladlen Popolitov <[email protected]>\n" +"Language-Team: Russian <https://translate-dev.freebsd.org/projects/" +"documentation/booksporters-handbook_index/ru/>\n" +"Language: ru\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Plural-Forms: nplurals=3; plural=n%10==1 && n%100!=11 ? 0 : n%10>=2 && " +"n%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2;\n" +"X-Generator: Weblate 4.17\n" + +#. type: Yaml Front Matter Hash Value: description +#: documentation/content/en/books/porters-handbook/_index.adoc:1 +#, no-wrap +msgid "Essential reading if you plan on providing a port of a third party piece of software" +msgstr "ÐбÑзаÑелÑно к пÑоÑÑениÑ, еÑли Ð²Ñ Ð¿Ð»Ð°Ð½Ð¸ÑÑеÑе поÑÑиÑоваÑÑ ÑÑоÑоннее пÑогÑаммное обеÑпеÑение" + +#. type: Title = +#: documentation/content/en/books/porters-handbook/_index.adoc:1 +#: documentation/content/en/books/porters-handbook/_index.adoc:18 +#, no-wrap +msgid "FreeBSD Porter's Handbook" +msgstr "Ð ÑководÑÑво FreeBSD по ÑÐ¾Ð·Ð´Ð°Ð½Ð¸Ñ Ð¿Ð¾ÑÑов" + +#. type: Plain text +#: documentation/content/en/books/porters-handbook/_index.adoc:49 +msgid "'''" +msgstr "'''" diff --git a/documentation/content/ru/books/porters-handbook/book.adoc b/documentation/content/ru/books/porters-handbook/book.adoc index 73c6b67672..84bedca43a 100644 --- a/documentation/content/ru/books/porters-handbook/book.adoc +++ b/documentation/content/ru/books/porters-handbook/book.adoc @@ -1,13 +1,16 @@ --- -title: Ð ÑководÑÑво FreeBSD по ÑÐ¾Ð·Ð´Ð°Ð½Ð¸Ñ Ð¿Ð¾ÑÑов -authors: - - author: The FreeBSD Documentation Project -copyright: 2000-2020 The FreeBSD Documentation Project -trademarks: ["freebsd", "sun", "unix", "general"] add_split_page_link: true +authors: + - + author: 'The FreeBSD Documentation Project' +copyright: '2000-2023 The FreeBSD Documentation Project' +description: 'ÐбÑзаÑелÑно к пÑоÑÑениÑ, еÑли Ð²Ñ Ð¿Ð»Ð°Ð½Ð¸ÑÑеÑе поÑÑиÑоваÑÑ ÑÑоÑоннее пÑогÑаммное обеÑпеÑение' +tags: "[\"FreeBSD Porter's Handbook\", \"Porting\", \"FreeBSD Ports Collection\"]" +title: 'Ð ÑководÑÑво FreeBSD по ÑÐ¾Ð·Ð´Ð°Ð½Ð¸Ñ Ð¿Ð¾ÑÑов' +trademarks: ["freebsd", "sun", "unix", "general"] --- -= FreeBSD Porter's Handbook += Ð ÑководÑÑво FreeBSD по ÑÐ¾Ð·Ð´Ð°Ð½Ð¸Ñ Ð¿Ð¾ÑÑов :doctype: book :toc: macro :toclevels: 2 @@ -52,6 +55,7 @@ include::{chapters-path}quick-porting/_index.adoc[leveloffset=+1] include::{chapters-path}slow-porting/_index.adoc[leveloffset=+1] include::{chapters-path}makefiles/_index.adoc[leveloffset=+1] include::{chapters-path}special/_index.adoc[leveloffset=+1] +include::{chapters-path}flavors/_index.adoc[leveloffset=+1] include::{chapters-path}plist/_index.adoc[leveloffset=+1] include::{chapters-path}pkg-files/_index.adoc[leveloffset=+1] include::{chapters-path}testing/_index.adoc[leveloffset=+1] @@ -59,6 +63,7 @@ include::{chapters-path}upgrading/_index.adoc[leveloffset=+1] include::{chapters-path}security/_index.adoc[leveloffset=+1] include::{chapters-path}porting-dads/_index.adoc[leveloffset=+1] include::{chapters-path}porting-samplem/_index.adoc[leveloffset=+1] +include::{chapters-path}order/_index.adoc[leveloffset=+1] include::{chapters-path}keeping-up/_index.adoc[leveloffset=+1] include::{chapters-path}uses/_index.adoc[leveloffset=+1] include::{chapters-path}versions/_index.adoc[leveloffset=+1] diff --git a/documentation/content/ru/books/porters-handbook/book.po b/documentation/content/ru/books/porters-handbook/book.po new file mode 100644 index 0000000000..2994c7daaa --- /dev/null +++ b/documentation/content/ru/books/porters-handbook/book.po @@ -0,0 +1,37 @@ +# SOME DESCRIPTIVE TITLE +# Copyright (C) YEAR The FreeBSD Project +# This file is distributed under the same license as the FreeBSD Documentation package. +# Vladlen Popolitov <[email protected]>, 2025. +msgid "" +msgstr "" +"Project-Id-Version: FreeBSD Documentation VERSION\n" +"POT-Creation-Date: 2025-09-18 22:05+0300\n" +"PO-Revision-Date: 2025-07-12 04:45+0000\n" +"Last-Translator: Vladlen Popolitov <[email protected]>\n" +"Language-Team: Russian <https://translate-dev.freebsd.org/projects/" +"documentation/booksporters-handbookbook/ru/>\n" +"Language: ru\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Plural-Forms: nplurals=3; plural=n%10==1 && n%100!=11 ? 0 : n%10>=2 && " +"n%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2;\n" +"X-Generator: Weblate 4.17\n" + +#. type: Yaml Front Matter Hash Value: description +#: documentation/content/en/books/porters-handbook/book.adoc:1 +#, no-wrap +msgid "Essential reading if you plan on providing a port of a third party piece of software" +msgstr "ÐбÑзаÑелÑно к пÑоÑÑениÑ, еÑли Ð²Ñ Ð¿Ð»Ð°Ð½Ð¸ÑÑеÑе поÑÑиÑоваÑÑ ÑÑоÑоннее пÑогÑаммное обеÑпеÑение" + +#. type: Title = +#: documentation/content/en/books/porters-handbook/book.adoc:1 +#: documentation/content/en/books/porters-handbook/book.adoc:12 +#, no-wrap +msgid "FreeBSD Porter's Handbook" +msgstr "Ð ÑководÑÑво FreeBSD по ÑÐ¾Ð·Ð´Ð°Ð½Ð¸Ñ Ð¿Ð¾ÑÑов" + +#. type: Plain text +#: documentation/content/en/books/porters-handbook/book.adoc:48 +msgid "'''" +msgstr "'''" diff --git a/documentation/content/ru/books/porters-handbook/flavors/_index.adoc b/documentation/content/ru/books/porters-handbook/flavors/_index.adoc new file mode 100644 index 0000000000..f69bf3938d --- /dev/null +++ b/documentation/content/ru/books/porters-handbook/flavors/_index.adoc @@ -0,0 +1,359 @@ +--- +description: 'ФлейвоÑÑ â ÑÑо ÑпоÑоб ÑÐ¾Ð·Ð´Ð°Ð½Ð¸Ñ Ð½ÐµÑколÑÐºÐ¸Ñ Ð²Ð°ÑиаÑий поÑÑа' +next: books/porters-handbook/plist +params: + path: /books/porters-handbook/flavors/ +prev: books/porters-handbook/special +showBookMenu: true +tags: ["Ports", "Flavors", "introduction", "how-to", "guide"] +title: 'Ðлава 7. ФлейвоÑÑ' +weight: 7 +--- + +[[flavors]] += ФлейвоÑÑ +:doctype: book +:toc: macro +:toclevels: 1 +:icons: font +:sectnums: +:sectnumlevels: 6 +:sectnumoffset: 7 +:partnums: +:source-highlighter: rouge +:experimental: +:images-path: books/porters-handbook/ + +ifdef::env-beastie[] +ifdef::backend-html5[] +:imagesdir: ../../../../images/{images-path} +endif::[] +ifndef::book[] +include::shared/authors.adoc[] +include::shared/mirrors.adoc[] +include::shared/releases.adoc[] +include::shared/attributes/attributes-{{% lang %}}.adoc[] +include::shared/{{% lang %}}/teams.adoc[] +include::shared/{{% lang %}}/mailing-lists.adoc[] +include::shared/{{% lang %}}/urls.adoc[] +toc::[] +endif::[] +ifdef::backend-pdf,backend-epub3[] +include::../../../../../shared/asciidoctor.adoc[] +endif::[] +endif::[] + +ifndef::env-beastie[] +toc::[] +include::../../../../../shared/asciidoctor.adoc[] +endif::[] + +[[flavors-intro]] +== Ðведение в ÑлейвоÑÑ (Flavors) + +ФлейвоÑÑ (Flavors) â ÑÑо ÑпоÑоб ÑÐ¾Ð·Ð´Ð°Ð½Ð¸Ñ Ð½ÐµÑколÑÐºÐ¸Ñ Ð²Ð°ÑиаÑий поÑÑа. ÐоÑÑ ÑобиÑаеÑÑÑ Ð½ÐµÑколÑко Ñаз Ñ ÑазлиÑнÑми ваÑиаÑиÑми. + +ÐапÑимеÑ, поÑÑ Ð¼Ð¾Ð¶ÐµÑ Ð¸Ð¼ÐµÑÑ Ð¾Ð±ÑÑнÑÑ Ð²ÐµÑÑÐ¸Ñ Ñ Ð¼Ð½Ð¾Ð¶ÐµÑÑвом ÑÑнкÑий и знаÑиÑелÑнÑм колиÑеÑÑвом завиÑимоÑÑей, а Ñакже облегÑÑннÑÑ "lite"-веÑÑÐ¸Ñ ÑолÑко Ñ Ð±Ð°Ð·Ð¾Ð²Ñми ÑÑнкÑиÑми и минималÑнÑми завиÑимоÑÑÑми. + +ÐÑе одним пÑимеÑом Ð¼Ð¾Ð¶ÐµÑ Ð±ÑÑÑ Ð¿Ð¾ÑÑ Ñ Ð²Ð°ÑианÑом GTK и ваÑианÑом QT, в завиÑимоÑÑи Ð¾Ñ Ð¸ÑполÑзÑемого набоÑа инÑÑÑÑменÑов. + +[[flavors-using]] +== ÐÑполÑзование FLAVORS + +ЧÑÐ¾Ð±Ñ Ð¾Ð±ÑÑвиÑÑ Ð¿Ð¾ÑÑ Ñ Ð½ÐµÑколÑкими ÑлейвоÑами, добавÑÑе `FLAVORS` в его [.filename]#Makefile#. ÐеÑвÑй ваÑÐ¸Ð°Ð½Ñ Ð² `FLAVORS` ÑвлÑеÑÑÑ Ð²Ð°ÑианÑом по ÑмолÑаниÑ. + +[TIP] +==== +ÐÑо Ð¼Ð¾Ð¶ÐµÑ Ð¿Ð¾Ð¼Ð¾ÑÑ ÑпÑоÑÑиÑÑ Ð»Ð¾Ð³Ð¸ÐºÑ [.filename]#Makefile#, Ñакже опÑеделив `FLAVOR` как: + +[.programlisting] +.... +FLAVOR?= ${FLAVORS:[1]} +.... +==== + +[IMPORTANT] +==== +ЧÑÐ¾Ð±Ñ Ð¾ÑлиÑаÑÑ ÑлейвоÑÑ Ð¾Ñ Ð¾Ð¿Ñий, коÑоÑÑе вÑегда обознаÑаÑÑÑÑ Ð·Ð°Ð³Ð»Ð°Ð²Ð½Ñми бÑквами, Ð½Ð°Ð·Ð²Ð°Ð½Ð¸Ñ ÑлейвоÑов могÑÑ ÑодеÑжаÑÑ _ÑолÑко_ ÑÑÑоÑнÑе бÑквÑ, ÑиÑÑÑ Ð¸ Ñимвол подÑÑÑÐºÐ¸Ð²Ð°Ð½Ð¸Ñ `_`. +==== + +[[flavors-using-ex1]] +.ÐÑÐ½Ð¾Ð²Ñ Ð¸ÑполÑÐ·Ð¾Ð²Ð°Ð½Ð¸Ñ ÑлейвоÑов +[example] +==== +ÐÑли поÑÑ Ð¸Ð¼ÐµÐµÑ "облегÑеннÑй" подÑиненнÑй поÑÑ (lite slave port), подÑиненнÑй поÑÑ Ð¼Ð¾Ð¶Ð½Ð¾ ÑдалиÑÑ, а поÑÑ Ð¿ÑеобÑазоваÑÑ Ð²Ð¾ ÑлейвоÑÑ Ñ Ð¿Ð¾Ð¼Ð¾ÑÑÑ: + +[.programlisting] +.... +FLAVORS= default lite +lite_PKGNAMESUFFIX= -lite +[...] +.if ${FLAVOR:U} != lite +[enable non lite features] +.endif +.... + +==== + +[[flavors-using-ex2]] +.ÐÑе один пÑÐ¸Ð¼ÐµÑ Ð±Ð°Ð·Ð¾Ð²Ð¾Ð³Ð¾ иÑполÑÐ·Ð¾Ð²Ð°Ð½Ð¸Ñ ÑлейвоÑов +[example] +==== +ÐÑли поÑÑ Ð¸Ð¼ÐµÐµÑ Ð¿Ð¾Ð´ÑиненнÑй поÑÑ `-nox11`, подÑиненнÑй поÑÑ Ð¼Ð¾Ð¶Ð½Ð¾ ÑдалиÑÑ, а поÑÑ Ð¿ÑеобÑазоваÑÑ Ð² ÑлейвоÑÑ Ñ Ð¿Ð¾Ð¼Ð¾ÑÑÑ: + +[.programlisting] +.... +FLAVORS= x11 nox11 +FLAVOR?= ${FLAVORS:[1]} +nox11_PKGNAMESUFFIX= -nox11 +[...] +.if ${FLAVOR} == x11 +[enable x11 features] +.endif +.... + +==== + +[[flavors-using-ex3]] +.ÐÑполÑзование ÑлейвоÑов в более ÑложнÑÑ Ð¿ÑимеÑÐ°Ñ +[example] +==== +ÐÐ¾Ñ Ñлегка оÑÑедакÑиÑованнÑй оÑÑÑвок из Ñого, ÑÑо пÑиÑÑÑÑÑвÑÐµÑ Ð² пакеÑе package:devel/libpeas[], поÑÑе, коÑоÑÑй иÑполÑзÑÐµÑ crossref:flavors[flavors-auto-python,ÑлейвоÑÑ Python]. ÐÑи ÑÑандаÑÑнÑÑ Ð²ÐµÑÑиÑÑ Python 2 и 3, а именно 2.7 и 3.6, он авÑомаÑиÑеÑки полÑÑÐ¸Ñ `FLAVORS=py27 py36` + +[.programlisting] +.... +USES= gnome python +USE_PYTHON= flavors + +.if ${FLAVOR:Upy27:Mpy2*} +USE_GNOME= pygobject3 + +CONFIGURE_ARGS+= --enable-python2 --disable-python3 + +BUILD_WRKSRC= ${WRKSRC}/loaders/python +INSTALL_WRKSRC= ${WRKSRC}/loaders/python +.else # py3* +USE_GNOME+= py3gobject3 + +CONFIGURE_ARGS+= --disable-python2 --enable-python3 \ + ac_cv_path_PYTHON3_CONFIG=${LOCALBASE}/bin/python${PYTHON_VER}-config + +BUILD_WRKSRC= ${WRKSRC}/loaders/python3 +INSTALL_WRKSRC= ${WRKSRC}/loaders/python3 +.endif + +py34_PLIST= ${.CURDIR}/pkg-plist-py3 +py35_PLIST= ${.CURDIR}/pkg-plist-py3 +py36_PLIST= ${.CURDIR}/pkg-plist-py3 +.... + +ÐÑÐ¾Ñ Ð¿Ð¾ÑÑ Ð½Ðµ иÑполÑзÑÐµÑ `USE_PYTHON=distutils`, но вÑÑ Ñавно ÑÑебÑÐµÑ ÑлейвоÑÑ Python. ЧÑÐ¾Ð±Ñ Ð¸Ð·Ð±ÐµÐ¶Ð°ÑÑ Ð¾Ñибки в man:make[1] из-за пÑÑÑого знаÑÐµÐ½Ð¸Ñ `FLAVOR`, иÑполÑзÑйÑе `${FLAVOR:U}` в ÑÑавнениÑÑ ÑÑÑок вмеÑÑо `${FLAVOR}`. ÐÑивÑзки Gnome Python gobject3 имеÑÑ Ð´Ð²Ð° ÑазнÑÑ Ð½Ð°Ð·Ð²Ð°Ð½Ð¸Ñ: pygobject3 Ð´Ð»Ñ Python 2 и py3gobject3 Ð´Ð»Ñ Python 3. СкÑÐ¸Ð¿Ñ `configure` должен вÑполнÑÑÑÑÑ Ð² [.filename]#${WRKSRC}#, но Ð½Ð°Ñ Ð¸Ð½ÑеÑеÑÑÐµÑ ÑолÑко ÑбоÑка и ÑÑÑановка ÑаÑÑей пÑогÑаммного обеÑпеÑÐµÐ½Ð¸Ñ Ð´Ð»Ñ Python 2 или Python 3, поÑÑÐ¾Ð¼Ñ ÑÑÑановиÑе базовÑе Ð ºÐ°Ñалоги ÑбоÑки и ÑÑÑановки ÑооÑвеÑÑÑвÑÑÑим обÑазом. ÐодÑказка о пÑавилÑном пÑÑи к конÑигÑÑаÑÐ¸Ð¾Ð½Ð½Ð¾Ð¼Ñ ÑкÑип ÑÑ Python 3. СпиÑок Ñпаковки оÑлиÑаеÑÑÑ Ð¿Ñи ÑбоÑке Ñ Python 3. ÐоÑколÑÐºÑ ÐµÑÑÑ ÑÑи возможнÑе веÑÑии Python 3, ÑÑÑановиÑе `PLIST` Ð´Ð»Ñ Ð²ÑÐµÑ ÑÑÑÑ Ñ Ð¿Ð¾Ð¼Ð¾ÑÑÑ crossref:flavors[flavors-using-helpers, вÑпомогаÑелÑнÑе инÑÑÑÑменÑÑ ÑлейвоÑов]. +==== + +[[flavors-using-helpers]] +=== ÐÑпомогаÑелÑнÑе инÑÑÑÑменÑÑ Ð´Ð»Ñ ÑлейвоÑов (Flavors Helpers) + +ЧÑÐ¾Ð±Ñ ÑпÑоÑÑиÑÑ Ð½Ð°Ð¿Ð¸Ñание [.filename]#Makefile#, ÑÑÑеÑÑвÑÑÑ Ð½ÐµÑколÑко вÑпомогаÑелÑнÑÑ Ð¸Ð½ÑÑÑÑменÑов (помоÑников) ÑлейвоÑов. + +ÐÑÐ¾Ñ ÑпиÑок помоÑников ÑÑÑÐ°Ð½Ð¾Ð²Ð¸Ñ Ð¸Ñ Ð¿ÐµÑеменнÑÑ: + +* `__flavor___PKGNAMEPREFIX` +* `__flavor___PKGNAMESUFFIX` +* `__flavor___PLIST` +* `__flavor___DESCR` + +ÐÑÐ¾Ñ ÑпиÑок помоÑников бÑÐ´ÐµÑ Ð´Ð¾Ð±Ð°Ð²Ð»ÐµÐ½ к Ð¸Ñ Ð¿ÐµÑеменной: + +* `__flavor___CONFLICTS` +* `__flavor___CONFLICTS_BUILD` +* `__flavor___CONFLICTS_INSTALL` +* `__flavor___PKG_DEPENDS` +* `__flavor___EXTRACT_DEPENDS` +* `__flavor___PATCH_DEPENDS` +* `__flavor___FETCH_DEPENDS` +* `__flavor___BUILD_DEPENDS` +* `__flavor___LIB_DEPENDS` +* `__flavor___RUN_DEPENDS` +* `__flavor___TEST_DEPENDS` + +[[flavors-helpers-ex1]] +.СпеÑиÑиÑнÑй Ð´Ð»Ñ ÑлейвоÑа `PKGNAME` +[example] +==== +ÐоÑколÑÐºÑ Ð²Ñе пакеÑÑ Ð´Ð¾Ð»Ð¶Ð½Ñ Ð¸Ð¼ÐµÑÑ ÑникалÑнÑе имена, ÑлейвоÑÑ Ð´Ð¾Ð»Ð¶Ð½Ñ Ð¸Ð·Ð¼ÐµÐ½ÑÑÑ Ð¸Ñ , иÑполÑзÑÑ `__flavor___PKGNAMEPREFIX` и `__flavor___PKGNAMESUFFIX`, ÑÑо ÑпÑоÑÐ°ÐµÑ Ð·Ð°Ð´Ð°ÑÑ: + +[.programlisting] +.... +FLAVORS= normal lite +lite_PKGNAMESUFFIX= -lite +.... + +==== + +[[flavors-auto-php]] +== `USES=php` и ÑлейвоÑÑ + +ÐÑи иÑполÑзовании crossref:uses[uses-php,`php`] Ñ Ð¾Ð´Ð½Ð¸Ð¼ из ÑÑÐ¸Ñ Ð°ÑгÑменÑов: `phpize`, `ext`, `zend` или `pecl`, поÑÑ Ð°Ð²ÑомаÑиÑеÑки полÑÑÐ¸Ñ Ð·Ð°Ð¿Ð¾Ð»Ð½ÐµÐ½Ð½Ñй паÑамеÑÑ `FLAVORS` Ñ Ð²ÐµÑÑиÑми PHP, коÑоÑÑе он поддеÑживаеÑ. + +[[flavors-auto-php-ex1]] +.ÐÑоÑÑое ÑаÑÑиÑение `USES=php` +[example] +==== +ÐÑо ÑоздаÑÑ Ð¿Ð°ÐºÐµÑ Ð´Ð»Ñ Ð²ÑÐµÑ Ð¿Ð¾Ð´Ð´ÐµÑживаемÑÑ Ð²ÐµÑÑий: + +[.programlisting] +.... +PORTNAME= some-ext +PORTVERSION= 0.0.1 +PKGNAMEPREFIX= ${PHP_PKGNAMEPREFIX} + +USES= php:ext +.... + +ÐÑо ÑоздаÑÑ Ð¿Ð°ÐºÐµÑ Ð´Ð»Ñ Ð²ÑÐµÑ Ð¿Ð¾Ð´Ð´ÐµÑживаемÑÑ Ð²ÐµÑÑий, кÑоме 7.2: + +[.programlisting] +.... +PORTNAME= some-ext +PORTVERSION= 0.0.1 +PKGNAMEPREFIX= ${PHP_PKGNAMEPREFIX} + +USES= php:ext +IGNORE_WITH_PHP= 72 +.... + +==== + +[[flavors-auto-php-app]] +=== ÐеÑÑии PHP Ñ Ð¿ÑиложениÑми PHP + +ÐÑÐ¸Ð»Ð¾Ð¶ÐµÐ½Ð¸Ñ PHP Ñакже могÑÑ Ð±ÑÑÑ ÑÐ¾Ð·Ð´Ð°Ð½Ñ Ñ Ð¸ÑполÑзованием ÑлейвоÑов. + +ÐÑо позволÑÐµÑ ÑоздаваÑÑ Ð¿Ð°ÐºÐµÑÑ Ð´Ð»Ñ Ð²ÑÐµÑ Ð²ÐµÑÑий PHP, ÑÑÐ¾Ð±Ñ Ð¿Ð¾Ð»ÑзоваÑели могли иÑполÑзоваÑÑ Ð¸Ñ Ñ Ð»Ñбой Ð½ÐµÐ¾Ð±Ñ Ð¾Ð´Ð¸Ð¼Ð¾Ð¹ веÑÑией на ÑÐ²Ð¾Ð¸Ñ ÑеÑвеÑÐ°Ñ . + +[IMPORTANT] +==== +ÐÑÐ¸Ð»Ð¾Ð¶ÐµÐ½Ð¸Ñ PHP, коÑоÑÑе иÑполÑзÑÑÑ ÑлейвоÑÑ, _обÑзанÑ_ добавлÑÑÑ `PHP_PKGNAMESUFFIX` к именам ÑÐ²Ð¾Ð¸Ñ Ð¿Ð°ÐºÐµÑов. +==== + +[[flavors-auto-php-app-ex1]] +.Ðобавление ÑлейвоÑов в PHP-пÑÐ¸Ð»Ð¾Ð¶ÐµÐ½Ð¸Ñ +[example] +==== +Ðобавление поддеÑжки ÑлейвоÑов в PHP-пÑиложение пÑоÑÑо: + +[.programlisting] +.... +PKGNAMESUFFIX= ${PHP_PKGNAMESUFFIX} + +USES= php:flavors +.... + +==== + +[TIP] +==== +ÐÑи добавлении завиÑимоÑÑи к поÑÑÑ Ñ Ð²Ð°ÑианÑом PHP иÑполÑзÑйÑе `@${PHP_FLAVOR}`. _Ðикогда_ не иÑполÑзÑйÑе `FLAVOR` напÑÑмÑÑ. +==== + +[[flavors-auto-python]] +== `USES=python` и ÑлейвоÑÑ + +ÐÑи иÑполÑзовании crossref:uses[uses-python,`python`] и `USE_PYTHON=distutils` поÑÑ Ð°Ð²ÑомаÑиÑеÑки полÑÑÐ¸Ñ Ð·Ð°Ð¿Ð¾Ð»Ð½ÐµÐ½Ð½Ñе `FLAVORS` Ñ Ð²ÐµÑÑиÑми Python, коÑоÑÑе он поддеÑживаеÑ. + +[[flavors-auto-python-ex1]] +.ÐÑоÑÑой `USES=python` +[example] +==== +ÐÑедполагаÑ, ÑÑо поддеÑживаемÑе веÑÑии Python â 2.7, 3.4, 3.5 и 3.6, а веÑÑии Python 2 и 3 по ÑмолÑÐ°Ð½Ð¸Ñ â 2.7 и 3.6, поÑÑ Ñ Ð¿Ð°ÑамеÑÑами: + +[.programlisting] +.... +USES= python +USE_PYTHON= distutils +.... + +полÑÑÐ¸Ñ ÑледÑÑÑие ÑлейвоÑÑ: `py27` и `py36`. + +[.programlisting] +.... +USES= python +USE_PYTHON= distutils allflavors +.... + +полÑÑÐ¸Ñ ÑледÑÑÑие ÑлейвоÑÑ: `py27`, `py34`, `py35` и `py36`. +==== + +[[flavors-auto-python-ex2]] +.`USES=python` Ñ ÑÑебованиÑми к веÑÑии +[example] +==== +ÐÑедполагаÑ, ÑÑо поддеÑживаемÑе веÑÑии Python â 2.7, 3.4, 3.5 и 3.6, а веÑÑии Python 2 и 3 по ÑмолÑÐ°Ð½Ð¸Ñ â 2.7 и 3.6, поÑÑ Ñ Ð¿Ð°ÑамеÑÑами: + +[.programlisting] +.... +USES= python:-3.5 +USE_PYTHON= distutils +.... + +полÑÑÐ¸Ñ ÑледÑÑÑие ÑлейвоÑ: `py27`. + +[.programlisting] +.... +USES= python:-3.5 +USE_PYTHON= distutils allflavors +.... + +полÑÑÐ¸Ñ ÑледÑÑÑие ÑлейвоÑÑ: `py27`, `py34` и `py35`. + +[.programlisting] +.... +USES= python:3.4+ +USE_PYTHON= distutils +.... + +полÑÑÐ¸Ñ ÑледÑÑÑий ÑлейвоÑ: `py36`. + +[.programlisting] +.... +USES= python:3.4+ +USE_PYTHON= distutils allflavors +.... + +полÑÑÐ¸Ñ ÑледÑÑÑие ÑлейвоÑÑ: `py34`, `py35` и `py36`. +==== + +`PY_FLAVOR` доÑÑÑпен Ð´Ð»Ñ ÑÐºÐ°Ð·Ð°Ð½Ð¸Ñ Ð¿ÑавилÑной веÑÑии модÑлей Python. ÐÑе завиÑимоÑÑи Ð¾Ñ Ð²Ð°ÑианÑов поÑÑов Python Ð´Ð¾Ð»Ð¶Ð½Ñ Ð¸ÑполÑзоваÑÑ `PY_FLAVOR`, а не `FLAVOR` напÑÑмÑÑ. + +[[flavors-auto-python-ex3]] +.ÐÐ»Ñ Ð¿Ð¾ÑÑа, не иÑполÑзÑÑÑего `distutils` +[example] +==== +ÐÑли веÑÑÐ¸Ñ Python 3 по ÑмолÑÐ°Ð½Ð¸Ñ â 3.6, ÑледÑÑÑÐ°Ñ ÐºÐ¾Ð¼Ð°Ð½Ð´Ð° ÑÑÑÐ°Ð½Ð¾Ð²Ð¸Ñ `PY_FLAVOR` в знаÑение `py36`: + +[.programlisting] +.... +RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}mutagen>0:audio/py-mutagen@${PY_FLAVOR} + +USES= python:3.5+ +.... + +==== + +[[flavors-auto-lua]] +== `USES=lua` и ÑлейвоÑÑ + +ÐÑи иÑполÑзовании crossref:uses[uses-lua,`lua:module`] или crossref:uses[uses-lua,`lua:flavors`] поÑÑ Ð°Ð²ÑомаÑиÑеÑки полÑÑÐ¸Ñ Ð·Ð°Ð¿Ð¾Ð»Ð½ÐµÐ½Ð½Ñй паÑамеÑÑ `FLAVORS` Ñ Ð²ÐµÑÑиÑми Lua, коÑоÑÑе он поддеÑживаеÑ. Ðднако пÑедполагаеÑÑÑ, ÑÑо обÑÑнÑе пÑÐ¸Ð»Ð¾Ð¶ÐµÐ½Ð¸Ñ (а не модÑли Lua) не Ð´Ð¾Ð»Ð¶Ð½Ñ Ð¸ÑполÑзоваÑÑ ÑÑÑ Ð²Ð¾Ð·Ð¼Ð¾Ð¶Ð½Ð¾ÑÑÑ; болÑÑинÑÑÐ²Ñ Ð¿Ñиложений, коÑоÑÑе вÑÑÑаиваÑÑ Ð¸Ð»Ð¸ инÑм обÑазом иÑполÑзÑÑÑ Lua, ÑледÑÐµÑ Ð¿ÑоÑÑо ÑказÑваÑÑ `USES=lua`. + +`LUA_FLAVOR` доÑÑÑпен (и должен иÑполÑзоваÑÑÑÑ) Ð´Ð»Ñ Ð·Ð°Ð²Ð¸ÑимоÑÑи Ð¾Ñ Ð¿ÑавилÑной веÑÑии завиÑимоÑÑей, незавиÑимо Ð¾Ñ Ñого, иÑполÑзовал ли поÑÑ Ð¿Ð°ÑамеÑÑÑ `flavors` или `module`. + +См. crossref:special[using-lua,ÐÑполÑзование Lua] Ð´Ð»Ñ Ð¿Ð¾Ð»ÑÑÐµÐ½Ð¸Ñ Ð´Ð¾Ð¿Ð¾Ð»Ð½Ð¸ÑелÑной инÑоÑмаÑии. + +[[flavors-auto-guile]] +== `USES=guile` и ÑлейвоÑÑ + +ÐÑи иÑполÑзовании crossref:uses[uses-guile,`guile:flavors`] поÑÑ Ð°Ð²ÑомаÑиÑеÑки полÑÑÐ¸Ñ Ð·Ð°Ð¿Ð¾Ð»Ð½ÐµÐ½Ð½Ð¾Ðµ поле `FLAVORS` Ñ Ð²ÐµÑÑиÑми Guile, коÑоÑÑе он поддеÑживаеÑ. Ðднако не пÑедполагаеÑÑÑ, ÑÑо обÑÑнÑе пÑÐ¸Ð»Ð¾Ð¶ÐµÐ½Ð¸Ñ Ð´Ð¾Ð»Ð¶Ð½Ñ Ð¸ÑполÑзоваÑÑ ÑÑÑ Ð²Ð¾Ð·Ð¼Ð¾Ð¶Ð½Ð¾ÑÑÑ; она в пеÑвÑÑ Ð¾ÑеÑÐµÐ´Ñ Ð¿ÑедназнаÑена Ð´Ð»Ñ Ð±Ð¸Ð±Ð»Ð¸Ð¾Ñек и ÑаÑÑиÑений, ÑÐ°ÐºÐ¸Ñ ÐºÐ°Ðº `guile-lib` или `guile-cairo`. + +`GUILE_FLAVOR` доÑÑÑпен (и должен иÑполÑзоваÑÑÑÑ) Ð´Ð»Ñ Ð·Ð°Ð²Ð¸ÑимоÑÑи Ð¾Ñ Ð¿ÑавилÑной веÑÑии завиÑимоÑÑей Ñ ÑлейвоÑами, незавиÑимо Ð¾Ñ Ñого, иÑполÑзовал ли поÑÑ Ð¿Ð°ÑамеÑÑ `flavors` или неÑ. + +См. crossref:special[using-guile,ÐÑполÑзование Guile] Ð´Ð»Ñ Ð¿Ð¾Ð»ÑÑÐµÐ½Ð¸Ñ Ð´Ð¾Ð¿Ð¾Ð»Ð½Ð¸ÑелÑной инÑоÑмаÑии. diff --git a/documentation/content/ru/books/porters-handbook/flavors/_index.po b/documentation/content/ru/books/porters-handbook/flavors/_index.po new file mode 100644 index 0000000000..9e9ed2fcb6 --- /dev/null +++ b/documentation/content/ru/books/porters-handbook/flavors/_index.po @@ -0,0 +1,801 @@ +# SOME DESCRIPTIVE TITLE +# Copyright (C) YEAR The FreeBSD Project +# This file is distributed under the same license as the FreeBSD Documentation package. +# Vladlen Popolitov <[email protected]>, 2025. +msgid "" +msgstr "" +"Project-Id-Version: FreeBSD Documentation VERSION\n" +"POT-Creation-Date: 2025-09-18 22:05+0300\n" +"PO-Revision-Date: 2025-07-13 19:10+0000\n" +"Last-Translator: Vladlen Popolitov <[email protected]>\n" +"Language-Team: Russian <https://translate-dev.freebsd.org/projects/" +"documentation/booksporters-handbookflavors_index/ru/>\n" +"Language: ru\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Plural-Forms: nplurals=3; plural=n%10==1 && n%100!=11 ? 0 : n%10>=2 && " +"n%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2;\n" +"X-Generator: Weblate 4.17\n" + +#. type: Yaml Front Matter Hash Value: description +#: documentation/content/en/books/porters-handbook/flavors/_index.adoc:1 +#, no-wrap +msgid "Flavors are a way to have multiple variations of a port" +msgstr "ФлейвоÑÑ â ÑÑо ÑпоÑоб ÑÐ¾Ð·Ð´Ð°Ð½Ð¸Ñ Ð½ÐµÑколÑÐºÐ¸Ñ Ð²Ð°ÑиаÑий поÑÑа" + +#. type: Yaml Front Matter Hash Value: title +#: documentation/content/en/books/porters-handbook/flavors/_index.adoc:1 +#, no-wrap +msgid "Chapter 7. Flavors" +msgstr "Ðлава 7. ФлейвоÑÑ" + +#. type: Title = +#: documentation/content/en/books/porters-handbook/flavors/_index.adoc:14 +#, no-wrap +msgid "Flavors" +msgstr "ФлейвоÑÑ" + +#. type: Title == +#: documentation/content/en/books/porters-handbook/flavors/_index.adoc:52 +#, no-wrap +msgid "An Introduction to Flavors" +msgstr "Ðведение в ÑлейвоÑÑ (Flavors)" + +#. type: Plain text +#: documentation/content/en/books/porters-handbook/flavors/_index.adoc:56 +msgid "" +"Flavors are a way to have multiple variations of a port. The port is built " +"multiple times, with variations." +msgstr "" +"ФлейвоÑÑ (Flavors) â ÑÑо ÑпоÑоб ÑÐ¾Ð·Ð´Ð°Ð½Ð¸Ñ Ð½ÐµÑколÑÐºÐ¸Ñ Ð²Ð°ÑиаÑий поÑÑа. ÐоÑÑ " +"ÑобиÑаеÑÑÑ Ð½ÐµÑколÑко Ñаз Ñ ÑазлиÑнÑми ваÑиаÑиÑми." + +#. type: Plain text +#: documentation/content/en/books/porters-handbook/flavors/_index.adoc:58 +msgid "" +"For example, a port can have a normal version with many features and quite a " +"few dependencies, and a light \"lite\" version with only basic features and " +"minimal dependencies." +msgstr "" +"ÐапÑимеÑ, поÑÑ Ð¼Ð¾Ð¶ÐµÑ Ð¸Ð¼ÐµÑÑ Ð¾Ð±ÑÑнÑÑ Ð²ÐµÑÑÐ¸Ñ Ñ Ð¼Ð½Ð¾Ð¶ÐµÑÑвом ÑÑнкÑий и " +"знаÑиÑелÑнÑм колиÑеÑÑвом завиÑимоÑÑей, а Ñакже облегÑÑннÑÑ \"lite\"-веÑÑÐ¸Ñ " +"ÑолÑко Ñ Ð±Ð°Ð·Ð¾Ð²Ñми ÑÑнкÑиÑми и минималÑнÑми завиÑимоÑÑÑми." + +#. type: Plain text +#: documentation/content/en/books/porters-handbook/flavors/_index.adoc:60 +msgid "" +"Another example could be, a port can have a GTK flavor and a QT flavor, " +"depending on which toolkit it uses." +msgstr "" +"ÐÑе одним пÑимеÑом Ð¼Ð¾Ð¶ÐµÑ Ð±ÑÑÑ Ð¿Ð¾ÑÑ Ñ Ð²Ð°ÑианÑом GTK и ваÑианÑом QT, в " +"завиÑимоÑÑи Ð¾Ñ Ð¸ÑполÑзÑемого набоÑа инÑÑÑÑменÑов." + +#. type: Title == +#: documentation/content/en/books/porters-handbook/flavors/_index.adoc:62 +#, no-wrap +msgid "Using FLAVORS" +msgstr "ÐÑполÑзование FLAVORS" + +#. type: Plain text +#: documentation/content/en/books/porters-handbook/flavors/_index.adoc:66 +msgid "" +"To declare a port having multiple flavors, add `FLAVORS` to its " +"[.filename]#Makefile#. The first flavor in `FLAVORS` is the default flavor." +msgstr "" +"ЧÑÐ¾Ð±Ñ Ð¾Ð±ÑÑвиÑÑ Ð¿Ð¾ÑÑ Ñ Ð½ÐµÑколÑкими ÑлейвоÑами, добавÑÑе `FLAVORS` в его " +"[.filename]#Makefile#. ÐеÑвÑй ваÑÐ¸Ð°Ð½Ñ Ð² `FLAVORS` ÑвлÑеÑÑÑ Ð²Ð°ÑианÑом по " +"ÑмолÑаниÑ." + +#. type: delimited block = 4 +#: documentation/content/en/books/porters-handbook/flavors/_index.adoc:70 +msgid "" +"It can help simplify the logic of the [.filename]#Makefile# to also define " +"`FLAVOR` as:" +msgstr "" +"ÐÑо Ð¼Ð¾Ð¶ÐµÑ Ð¿Ð¾Ð¼Ð¾ÑÑ ÑпÑоÑÑиÑÑ Ð»Ð¾Ð³Ð¸ÐºÑ [.filename]#Makefile#, Ñакже опÑеделив " +"`FLAVOR` как:" + +#. type: delimited block . 4 +#: documentation/content/en/books/porters-handbook/flavors/_index.adoc:74 +#, no-wrap +msgid "FLAVOR?=\t${FLAVORS:[1]}\n" +msgstr "FLAVOR?=\t${FLAVORS:[1]}\n" + +#. type: Plain text +#: documentation/content/en/books/porters-handbook/flavors/_index.adoc:80 +msgid "" +"To distinguish flavors from options, which are always uppercase letters, " +"flavor names can _only_ contain lowercase letters, numbers, and the " +"underscore `_`." +msgstr "" +"ЧÑÐ¾Ð±Ñ Ð¾ÑлиÑаÑÑ ÑлейвоÑÑ Ð¾Ñ Ð¾Ð¿Ñий, коÑоÑÑе вÑегда обознаÑаÑÑÑÑ Ð·Ð°Ð³Ð»Ð°Ð²Ð½Ñми " +"бÑквами, Ð½Ð°Ð·Ð²Ð°Ð½Ð¸Ñ ÑлейвоÑов могÑÑ ÑодеÑжаÑÑ _ÑолÑко_ ÑÑÑоÑнÑе бÑквÑ, ÑиÑÑÑ Ð¸ " +"Ñимвол подÑÑÑÐºÐ¸Ð²Ð°Ð½Ð¸Ñ `_`." + +#. type: Block title +#: documentation/content/en/books/porters-handbook/flavors/_index.adoc:83 +#, no-wrap +msgid "Basic Flavors Usage" +msgstr "ÐÑÐ½Ð¾Ð²Ñ Ð¸ÑполÑÐ·Ð¾Ð²Ð°Ð½Ð¸Ñ ÑлейвоÑов" + +#. type: Plain text +#: documentation/content/en/books/porters-handbook/flavors/_index.adoc:87 +msgid "" +"If a port has a \"lite\" slave port, the slave port can be removed, and the " +"port can be converted to flavors with:" +msgstr "" +"ÐÑли поÑÑ Ð¸Ð¼ÐµÐµÑ \"облегÑеннÑй\" подÑиненнÑй поÑÑ (lite slave port), " +"подÑиненнÑй поÑÑ Ð¼Ð¾Ð¶Ð½Ð¾ ÑдалиÑÑ, а поÑÑ Ð¿ÑеобÑазоваÑÑ Ð²Ð¾ ÑлейвоÑÑ Ñ Ð¿Ð¾Ð¼Ð¾ÑÑÑ:" + +#. type: delimited block . 4 +#: documentation/content/en/books/porters-handbook/flavors/_index.adoc:96 +#, no-wrap +msgid "" +"FLAVORS=\tdefault lite\n" +"lite_PKGNAMESUFFIX=\t-lite\n" +"[...]\n" +".if ${FLAVOR:U} != lite\n" +"[enable non lite features]\n" +".endif\n" +msgstr "" +"FLAVORS=\tdefault lite\n" +"lite_PKGNAMESUFFIX=\t-lite\n" +"[...]\n" +".if ${FLAVOR:U} != lite\n" +"[enable non lite features]\n" +".endif\n" + +#. type: Block title +#: documentation/content/en/books/porters-handbook/flavors/_index.adoc:101 +#, no-wrap +msgid "Another Basic Flavors Usage" +msgstr "ÐÑе один пÑÐ¸Ð¼ÐµÑ Ð±Ð°Ð·Ð¾Ð²Ð¾Ð³Ð¾ иÑполÑÐ·Ð¾Ð²Ð°Ð½Ð¸Ñ ÑлейвоÑов" + +#. type: Plain text +#: documentation/content/en/books/porters-handbook/flavors/_index.adoc:105 +msgid "" +"If a port has a `-nox11` slave port, the slave port can be removed, and the " +"port can be converted to flavors with:" +msgstr "" +"ÐÑли поÑÑ Ð¸Ð¼ÐµÐµÑ Ð¿Ð¾Ð´ÑиненнÑй поÑÑ `-nox11`, подÑиненнÑй поÑÑ Ð¼Ð¾Ð¶Ð½Ð¾ ÑдалиÑÑ, а " +"поÑÑ Ð¿ÑеобÑазоваÑÑ Ð² ÑлейвоÑÑ Ñ Ð¿Ð¾Ð¼Ð¾ÑÑÑ:" + +#. type: delimited block . 4 +#: documentation/content/en/books/porters-handbook/flavors/_index.adoc:115 +#, no-wrap +msgid "" +"FLAVORS=\tx11 nox11\n" +"FLAVOR?=\t${FLAVORS:[1]}\n" +"nox11_PKGNAMESUFFIX=\t-nox11\n" +"[...]\n" +".if ${FLAVOR} == x11\n" +"[enable x11 features]\n" +".endif\n" +msgstr "" +"FLAVORS=\tx11 nox11\n" +"FLAVOR?=\t${FLAVORS:[1]}\n" +"nox11_PKGNAMESUFFIX=\t-nox11\n" +"[...]\n" +".if ${FLAVOR} == x11\n" +"[enable x11 features]\n" +".endif\n" + +#. type: Block title +#: documentation/content/en/books/porters-handbook/flavors/_index.adoc:120 +#, no-wrap +msgid "More Complex Flavors Usage" +msgstr "ÐÑполÑзование ÑлейвоÑов в более ÑложнÑÑ Ð¿ÑимеÑÐ°Ñ " + +#. type: Plain text +#: documentation/content/en/books/porters-handbook/flavors/_index.adoc:126 +msgid "" +"Here is a slightly edited excerpt of what is present in package:devel/" +"libpeas[], a port that uses the crossref:flavors[flavors-auto-python,Python " +"flavors]. With the default Python 2 and 3 versions being 2.7 and 3.6, it " +"will automatically get `FLAVORS=py27 py36`" +msgstr "" +"ÐÐ¾Ñ Ñлегка оÑÑедакÑиÑованнÑй оÑÑÑвок из Ñого, ÑÑо пÑиÑÑÑÑÑвÑÐµÑ Ð² пакеÑе " +"package:devel/libpeas[], поÑÑе, коÑоÑÑй иÑполÑзÑÐµÑ crossref:flavors[flavors-" +"auto-python,ÑлейвоÑÑ Python]. ÐÑи ÑÑандаÑÑнÑÑ Ð²ÐµÑÑиÑÑ Python 2 и 3, а именно " +"2.7 и 3.6, он авÑомаÑиÑеÑки полÑÑÐ¸Ñ `FLAVORS=py27 py36`" + +#. type: delimited block . 4 +#: documentation/content/en/books/porters-handbook/flavors/_index.adoc:131 +#, no-wrap +msgid "" +"USES=\t\tgnome python\n" +"USE_PYTHON=\tflavors \n" +msgstr "" +"USES=\t\tgnome python\n" +"USE_PYTHON=\tflavors \n" + +#. type: delimited block . 4 +#: documentation/content/en/books/porters-handbook/flavors/_index.adoc:134 +#, no-wrap +msgid "" +".if ${FLAVOR:Upy27:Mpy2*} \n" +"USE_GNOME=\tpygobject3 \n" +msgstr "" +".if ${FLAVOR:Upy27:Mpy2*} \n" +"USE_GNOME=\tpygobject3 \n" + +#. type: delimited block . 4 +#: documentation/content/en/books/porters-handbook/flavors/_index.adoc:136 +#, no-wrap +msgid "CONFIGURE_ARGS+=\t--enable-python2 --disable-python3\n" +msgstr "CONFIGURE_ARGS+=\t--enable-python2 --disable-python3\n" + +#. type: delimited block . 4 +#: documentation/content/en/books/porters-handbook/flavors/_index.adoc:141 +#, no-wrap +msgid "" +"BUILD_WRKSRC=\t${WRKSRC}/loaders/python \n" +"INSTALL_WRKSRC=\t${WRKSRC}/loaders/python \n" +".else # py3*\n" +"USE_GNOME+=\tpy3gobject3 \n" +msgstr "" +"BUILD_WRKSRC=\t${WRKSRC}/loaders/python \n" +"INSTALL_WRKSRC=\t${WRKSRC}/loaders/python \n" +".else # py3*\n" +"USE_GNOME+=\tpy3gobject3 \n" + +#. type: delimited block . 4 +#: documentation/content/en/books/porters-handbook/flavors/_index.adoc:144 +#, no-wrap +msgid "" +"CONFIGURE_ARGS+=\t--disable-python2 --enable-python3 \\\n" +"\t\t\tac_cv_path_PYTHON3_CONFIG=${LOCALBASE}/bin/python${PYTHON_VER}-config \n" +msgstr "" +"CONFIGURE_ARGS+=\t--disable-python2 --enable-python3 \\\n" +"\t\t\tac_cv_path_PYTHON3_CONFIG=${LOCALBASE}/bin/python${PYTHON_VER}-config \n" + +#. type: delimited block . 4 +#: documentation/content/en/books/porters-handbook/flavors/_index.adoc:148 +#, no-wrap +msgid "" +"BUILD_WRKSRC=\t${WRKSRC}/loaders/python3 \n" +"INSTALL_WRKSRC=\t${WRKSRC}/loaders/python3 \n" +".endif\n" +msgstr "" +"BUILD_WRKSRC=\t${WRKSRC}/loaders/python3 \n" +"INSTALL_WRKSRC=\t${WRKSRC}/loaders/python3 \n" +".endif\n" + +#. type: delimited block . 4 +#: documentation/content/en/books/porters-handbook/flavors/_index.adoc:152 +#, no-wrap +msgid "" +"py34_PLIST=\t${.CURDIR}/pkg-plist-py3 \n" +"py35_PLIST=\t${.CURDIR}/pkg-plist-py3 \n" +"py36_PLIST=\t${.CURDIR}/pkg-plist-py3\n" +msgstr "" +"py34_PLIST=\t${.CURDIR}/pkg-plist-py3 \n" +"py35_PLIST=\t${.CURDIR}/pkg-plist-py3 \n" +"py36_PLIST=\t${.CURDIR}/pkg-plist-py3\n" + +#. type: Plain text +#: documentation/content/en/books/porters-handbook/flavors/_index.adoc:162 +msgid "" +"This port does not use `USE_PYTHON=distutils` but needs Python flavors " +"anyway. To guard against `FLAVOR` being empty, which would cause a " +"man:make[1] error, use `${FLAVOR:U}` in string comparisons instead of `$" +"{FLAVOR}`. The Gnome Python gobject3 bindings have two different names, one " +"for Python 2, pygobject3 and one for Python 3, py3gobject3. The `configure` " +"script has to run in [.filename]#${WRKSRC}#, but we are only interested in " +"building and installing the Python 2 or Python 3 parts of the software, so " +"set the build and install base directories appropriately. Hint about the " +"correct Python 3 config script path name. The packing list is different " +"when the built with Python 3. As there are three possible Python 3 versions, " +"set `PLIST` for all three using the crossref:flavors[flavors-using-" +"helpers,helper]." +msgstr "" +"ÐÑÐ¾Ñ Ð¿Ð¾ÑÑ Ð½Ðµ иÑполÑзÑÐµÑ `USE_PYTHON=distutils`, но вÑÑ Ñавно ÑÑебÑÐµÑ " +"ÑлейвоÑÑ Python. ЧÑÐ¾Ð±Ñ Ð¸Ð·Ð±ÐµÐ¶Ð°ÑÑ Ð¾Ñибки в man:make[1] из-за пÑÑÑого знаÑÐµÐ½Ð¸Ñ " +"`FLAVOR`, иÑполÑзÑйÑе `${FLAVOR:U}` в ÑÑавнениÑÑ ÑÑÑок вмеÑÑо `${FLAVOR}`. " +"ÐÑивÑзки Gnome Python gobject3 имеÑÑ Ð´Ð²Ð° ÑазнÑÑ Ð½Ð°Ð·Ð²Ð°Ð½Ð¸Ñ: pygobject3 Ð´Ð»Ñ " +"Python 2 и py3gobject3 Ð´Ð»Ñ Python 3. СкÑÐ¸Ð¿Ñ `configure` должен вÑполнÑÑÑÑÑ Ð² " +"[.filename]#${WRKSRC}#, но Ð½Ð°Ñ Ð¸Ð½ÑеÑеÑÑÐµÑ ÑолÑко ÑбоÑка и ÑÑÑановка ÑаÑÑей " +"пÑогÑаммного обеÑпеÑÐµÐ½Ð¸Ñ Ð´Ð»Ñ Python 2 или Python 3, поÑÑÐ¾Ð¼Ñ ÑÑÑановиÑе " +"базовÑе каÑалоги ÑбоÑки и ÑÑÑановки ÑооÑвеÑÑÑвÑÑÑим обÑазом. ÐодÑказка о " +"пÑавилÑном пÑÑи к конÑигÑÑаÑÐ¸Ð¾Ð½Ð½Ð¾Ð¼Ñ ÑкÑипÑÑ Python 3. СпиÑок Ñпаковки " +"оÑлиÑаеÑÑÑ Ð¿Ñи ÑбоÑке Ñ Python 3. ÐоÑколÑÐºÑ ÐµÑÑÑ ÑÑи возможнÑе веÑÑии Python " +"3, ÑÑÑановиÑе `PLIST` Ð´Ð»Ñ Ð²ÑÐµÑ ÑÑÑÑ Ñ Ð¿Ð¾Ð¼Ð¾ÑÑÑ crossref:flavors[flavors-using-" +"helpers, вÑпомогаÑелÑнÑе инÑÑÑÑменÑÑ ÑлейвоÑов]." + +#. type: Title === +#: documentation/content/en/books/porters-handbook/flavors/_index.adoc:165 +#, no-wrap +msgid "Flavors Helpers" +msgstr "ÐÑпомогаÑелÑнÑе инÑÑÑÑменÑÑ Ð´Ð»Ñ ÑлейвоÑов (Flavors Helpers)" + +#. type: delimited block = 4 +#: documentation/content/en/books/porters-handbook/flavors/_index.adoc:168 +msgid "" +"To make the [.filename]#Makefile# easier to write, a few flavors helpers " +"exist." +msgstr "" +"ЧÑÐ¾Ð±Ñ ÑпÑоÑÑиÑÑ Ð½Ð°Ð¿Ð¸Ñание [.filename]#Makefile#, ÑÑÑеÑÑвÑÑÑ Ð½ÐµÑколÑко " +"вÑпомогаÑелÑнÑÑ Ð¸Ð½ÑÑÑÑменÑов (помоÑников) ÑлейвоÑов." + +#. type: delimited block = 4 +#: documentation/content/en/books/porters-handbook/flavors/_index.adoc:170 +msgid "This list of helpers will set their variable:" +msgstr "ÐÑÐ¾Ñ ÑпиÑок помоÑников ÑÑÑÐ°Ð½Ð¾Ð²Ð¸Ñ Ð¸Ñ Ð¿ÐµÑеменнÑÑ:" + +#. type: delimited block = 4 +#: documentation/content/en/books/porters-handbook/flavors/_index.adoc:172 +msgid "`__flavor___PKGNAMEPREFIX`" +msgstr "`__flavor___PKGNAMEPREFIX`" + +#. type: delimited block = 4 +#: documentation/content/en/books/porters-handbook/flavors/_index.adoc:173 +msgid "`__flavor___PKGNAMESUFFIX`" +msgstr "`__flavor___PKGNAMESUFFIX`" + +#. type: delimited block = 4 +#: documentation/content/en/books/porters-handbook/flavors/_index.adoc:174 +msgid "`__flavor___PLIST`" +msgstr "`__flavor___PLIST`" + +#. type: delimited block = 4 +#: documentation/content/en/books/porters-handbook/flavors/_index.adoc:175 +msgid "`__flavor___DESCR`" +msgstr "`__flavor___DESCR`" + +#. type: delimited block = 4 +#: documentation/content/en/books/porters-handbook/flavors/_index.adoc:177 +msgid "This list of helpers will append to their variable:" +msgstr "ÐÑÐ¾Ñ ÑпиÑок помоÑников бÑÐ´ÐµÑ Ð´Ð¾Ð±Ð°Ð²Ð»ÐµÐ½ к Ð¸Ñ Ð¿ÐµÑеменной:" + +#. type: delimited block = 4 +#: documentation/content/en/books/porters-handbook/flavors/_index.adoc:179 +msgid "`__flavor___CONFLICTS`" +msgstr "`__flavor___CONFLICTS`" + +#. type: delimited block = 4 +#: documentation/content/en/books/porters-handbook/flavors/_index.adoc:180 +msgid "`__flavor___CONFLICTS_BUILD`" +msgstr "`__flavor___CONFLICTS_BUILD`" + +#. type: delimited block = 4 +#: documentation/content/en/books/porters-handbook/flavors/_index.adoc:181 +msgid "`__flavor___CONFLICTS_INSTALL`" +msgstr "`__flavor___CONFLICTS_INSTALL`" + +#. type: delimited block = 4 +#: documentation/content/en/books/porters-handbook/flavors/_index.adoc:182 +msgid "`__flavor___PKG_DEPENDS`" +msgstr "`__flavor___PKG_DEPENDS`" + +#. type: delimited block = 4 +#: documentation/content/en/books/porters-handbook/flavors/_index.adoc:183 +msgid "`__flavor___EXTRACT_DEPENDS`" +msgstr "`__flavor___EXTRACT_DEPENDS`" + +#. type: delimited block = 4 +#: documentation/content/en/books/porters-handbook/flavors/_index.adoc:184 +msgid "`__flavor___PATCH_DEPENDS`" +msgstr "`__flavor___PATCH_DEPENDS`" + +#. type: delimited block = 4 +#: documentation/content/en/books/porters-handbook/flavors/_index.adoc:185 +msgid "`__flavor___FETCH_DEPENDS`" +msgstr "`__flavor___FETCH_DEPENDS`" + +#. type: delimited block = 4 +#: documentation/content/en/books/porters-handbook/flavors/_index.adoc:186 +msgid "`__flavor___BUILD_DEPENDS`" +msgstr "`__flavor___BUILD_DEPENDS`" + +#. type: delimited block = 4 +#: documentation/content/en/books/porters-handbook/flavors/_index.adoc:187 +msgid "`__flavor___LIB_DEPENDS`" +msgstr "`__flavor___LIB_DEPENDS`" + +#. type: delimited block = 4 *** 112500 LINES SKIPPED ***